[ 
https://issues.apache.org/jira/browse/CB-7159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14066361#comment-14066361
 ] 

Andrew Grieve edited comment on CB-7159 at 7/18/14 1:59 PM:
------------------------------------------------------------

Repro steps from [~velda]:
{quote}
Add this to css to make clear that css doesn't play any role here:

{code}
* {
    background-color: black !important
}
{code}

Then infest <body> with HTML code from http://html-ipsum.com/ and ideally
form code. Copy it and hold paste for 10 seconds for example at <body> to
make DOM very big, then this problem will be well visible, when you do
rotate to landscape mode.


And finally, add <preference name="BackgroundColor" value="0xff000000"/> to
config.xml which does nothing...
{quote}



was (Author: agrieve):
Repro steps from [~velda]:
{quote}
Add this to css to make clear that css doesn't play any role here:

* {
    background-color: black !important
}

Then infest <body> with HTML code from http://html-ipsum.com/ and ideally
form code. Copy it and hold paste for 10 seconds for example at <body> to
make DOM very big, then this problem will be well visible, when you do
rotate to landscape mode.


And finally, add <preference name="BackgroundColor" value="0xff000000"/> to
config.xml which does nothing...
{quote}


> BackgroundColor not used when <html style="opacity:0>, nor during screen 
> rotation.
> ----------------------------------------------------------------------------------
>
>                 Key: CB-7159
>                 URL: https://issues.apache.org/jira/browse/CB-7159
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>            Reporter: Andrew Grieve
>            Assignee: Andrew Grieve
>            Priority: Minor
>
> As reported on SO: 
> http://stackoverflow.com/questions/24601226/change-background-color-of-app-visible-during-resizing-webview-due-to-device-ori
> The `<html style="opacity:0>` is a result of my own testing.
> This is fixed (I believe) by setting the Android View background color on the 
> WebView object as well as its parents.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to