cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vito Macchia (JIRA)" <>
Subject [jira] [Created] (CB-11273) Use css background-image for browser platform instead of img
Date Mon, 16 May 2016 17:01:12 GMT
Vito Macchia created CB-11273:

             Summary: Use css background-image for browser platform instead of img
                 Key: CB-11273
             Project: Apache Cordova
          Issue Type: Improvement
          Components: Plugin SplashScreen
    Affects Versions: 3.2.0
         Environment: any
            Reporter: Vito Macchia
            Priority: Minor

In platform browser, Splashscreen plugin could use css background image instead of img child
for displaying image, resulting in less distortion.
Moreover, zIndex should have higher values or it gets overlapped by other elements (this is
true also with current img implementation).

My suggestion is adding some properties to the div style such as:

    z-index: 9999;
    background-image: url(<splashscreen name>);
    background-size: contain;

And removing the img child which would become useless.

Just edit src/browser/SplashScreenProxy.js at method (about line 68): = 9999; = 'url(' + imgSrc + ')'; = 'contain';

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message