Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 74FCF2009C5 for ; Mon, 16 May 2016 19:01:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 739CF160A19; Mon, 16 May 2016 17:01:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E95FC160A16 for ; Mon, 16 May 2016 19:01:13 +0200 (CEST) Received: (qmail 38479 invoked by uid 500); 16 May 2016 17:01:13 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 38403 invoked by uid 99); 16 May 2016 17:01:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 May 2016 17:01:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CCF292C1F5D for ; Mon, 16 May 2016 17:01:12 +0000 (UTC) Date: Mon, 16 May 2016 17:01:12 +0000 (UTC) From: "Vito Macchia (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CB-11273) Use css background-image for browser platform instead of img MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 16 May 2016 17:01:14 -0000 Vito Macchia created CB-11273: --------------------------------- Summary: Use css background-image for browser platform instead of img Key: CB-11273 URL: https://issues.apache.org/jira/browse/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(); background-size: contain; And removing the img child which would become useless. Just edit src/browser/SplashScreenProxy.js at SplashScreen.show method (about line 68): localSplash.style.zIndex = 9999; localSplash.style.backgroundImage = 'url(' + imgSrc + ')'; localSplash.style.backgroundSize = 'contain'; -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org