Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C3F0A119E8 for ; Fri, 18 Jul 2014 09:20:07 +0000 (UTC) Received: (qmail 23730 invoked by uid 500); 18 Jul 2014 09:20:07 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 23699 invoked by uid 500); 18 Jul 2014 09:20:07 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 23683 invoked by uid 99); 18 Jul 2014 09:20:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jul 2014 09:20:06 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of VVelda@seznam.cz designates 77.75.72.123 as permitted sender) Received: from [77.75.72.123] (HELO mxf1.eznam.cz) (77.75.72.123) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jul 2014 09:20:02 +0000 Received: from email.seznam.cz by email-smtpc6b.go.seznam.cz (email-smtpc6b.go.seznam.cz [192.168.92.43]) id 1ddb79027323c6d11d589b80; Fri, 18 Jul 2014 11:19:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=seznam.cz; s=beta; t=1405675177; bh=U7RbLCTN74oCK9sEV7RxcKNM6eOy/ziN42ZZ/s3Sgtc=; h=Received:From:To:Subject:Date:Message-Id:Mime-Version:X-Mailer: Content-Type; b=gfPyP8RzBKAgVcoxEwdWWFhjyS07Fbji3o/1E2JiEeWkfBHD3BTvYM+CH9mFp2nKb 1Wx0yQ87d8K2iKbXcgAoU3aYSbHgu1w5ZYxBTSKLGx0KabrQvYlBKL2tgYesy2R4s0 vAJW+1fXzsUAhF/CtWEs9s58TZxdcdsI/TnwrBuw= Received: from bojkovice.freepoint.cz (bojkovice.freepoint.cz [80.251.242.115]) by email.seznam.cz (szn-ebox-4.4.203) with HTTP; Fri, 18 Jul 2014 11:19:31 +0200 (CEST) From: =?utf-8?q?Jan_Veleck=C3=BD?= To: Subject: Re: Change background color of Android Cordova app Date: Fri, 18 Jul 2014 11:19:31 +0200 (CEST) Message-Id: Mime-Version: 1.0 (szn-mime-1.1.14) X-Mailer: szn-ebox-4.4.203 Content-Type: multipart/alternative; boundary="=_1edde6677f9b965a4e738ecd=cda699a4-7fe7-5898-bdc9-e807f8ebfc8d_=" X-Virus-Checked: Checked by ClamAV on apache.org --=_1edde6677f9b965a4e738ecd=cda699a4-7fe7-5898-bdc9-e807f8ebfc8d_= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =0A= =0A= =0A= It's so simple reproduce this even without opacity. Simply make new Androi= d =0A= Cordova project.=0A= =0A= Add this to css to make clear that css doesn't play any role here:=0A= =0A= * {=0A= =C2=A0=C2=A0=C2=A0 background-color: black !important=0A= }=0A= =0A= Then infest with HTML code from http://html-ipsum.com/ and ideally = =0A= form code. Copy it and hold paste for 10 seconds for example at to = =0A= make DOM very big, then this problem will be well visible, when you do = =0A= rotate to landscape mode.=0A= =0A= =0A= =0A= =0A= And finally, add to =0A= config.xml which does nothing...=0A= =0A= =0A= =0A= =0A= =0A= That is it. Stupid simple to reproduce this.=0A= =0A= =0A= =0A= =0A= =0A= --------------------------------------------------------------------------= --=0A= ------------------=0A= =0A= =0A= Delay the loading of the URL without a screenshot? Also, you could run the= =0A= manual test application in test that's marked "Test Background Color". Thi= s =0A= isn't automated because it would require the inclusion of a third party = =0A= library like Robotium, and there's no way to programmatically test the = =0A= colour blue that's worth writing. (Seriously, it'd be yet another library = =0A= that'd take the screenshot within the 2 second delay, and then process the= =0A= image to see if the pixels are blue, a non-trivial amount of work for = =0A= something that someone can do when they need to.) =0A= =0A= On Thu, Jul 17, 2014 at 8:23 AM, Andrew Grieve wrot= e:=0A= =0A= =0A= =0A= I did it to test whether the backgroundColor preference was working. Do yo= u =0A= know another way to test that preference? =0A= =0A= On Thu, Jul 17, 2014 at 11:12 AM, Joe Bowser wrote: = =0A= =0A= =0A= So, this is only an issue if you set the html tag opacity to 0? Why would = =0A= anyone do this? =0A= =0A= On Thu, Jul 17, 2014 at 7:56 AM, Andrew Grieve wrot= e:=0A= =0A= =0A= =0A= Try setting opacity:0 on the tag and you can reproduce white showin= g =0A= instead of your backgroundColor. =0A= =0A= On Thu, Jul 17, 2014 at 10:54 AM, Joe Bowser wrote: = =0A= =0A= =0A= The WebView element isn't supposed to have the backgroundColor, it's the = =0A= view behind the WebView that's supposed to have the backgroundColor. = =0A= =0A= Also, I haven't seen this behaviour on any of the tests that we done. Unle= ss=0A= we can reproduce the issue, we can't fix it, and shouldn't just throw thin= gs=0A= over the wall. =0A= =0A= On Thu, Jul 17, 2014 at 7:46 AM, Andrew Grieve wrot= e:=0A= =0A= =0A= =0A= I was actually looking at this recently and found that the backgroundColor= =0A= preference is not being applied to the actual WebView element. Didn't want= =0A= to change it because I was changing other things at the time, but likely = =0A= this is just a bug that we should fix. =0A= =0A= Filed an issue: https://issues.apache.org/jira/browse/CB-7159=0A= (https://issues.apache.org/jira/browse/CB-7159) =0A= =0A= On Thu, Jul 17, 2014 at 9:56 AM, Sergey Grebnov (Akvelon) < v-se...@=0A= microsoft.com> wrote: =0A= =0A= =0A= I suppose this could be done by backgroundColor preference (config.xml) = =0A= =0A= =0A= =0A= Thx! Sergey =0A= =0A= =0A= -----Original Message----- From: Jan Veleck=C3=BD [mailto:VVe...@seznam.cz= ] Sent:=0A= Thursday, July 17, 2014 4:18 PM To: de...@cordova.apache.org Subject: Chan= ge=0A= background color of Android Cordova app =0A= =0A= Hello, how can I change background color, which is visible during =0A= orientation change until WebView is correctly resized. I specified it more= =0A= at http:// =0A= =0A= =0A= =0A= =0A= =0A= stackoverflow.com/questions/24601226/change-background-color-of-app-visibl= e-=0A= =0A= =0A= =0A= =0A= =0A= =0A= during-resizing-webview-due-to-device-ori =0A= =0A= But, it look stackoverflowers don't know solution to this problem, so I po= st=0A= it here. :-) =0A= =0A= I hope, someone have had different problem ;-) =0A= =0A= =0A= =0A= =0A= =0A= =0A= =0A= =0A= =0A= --=_1edde6677f9b965a4e738ecd=cda699a4-7fe7-5898-bdc9-e807f8ebfc8d_=--