EddyVerbruggen / cordova-plugin-webviewcolor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Black background that doesn't change.

leandroz opened this issue · comments

Hey! i hope someone had this problem before and knows how to solve it.
I have a background black color in the parts of my app with scroll, i tried changing the background color but without any luck.
background-backcolor
The same problem at the top, like this image:
img_3183

I'm getting the same problem. I'm trying to set the background color in my deviceready handler like so:

function onDeviceReady() {
    window.plugins.webviewcolor.change('#FFFFFF');
}
document.addEventListener('deviceready', onDeviceReady, false);

Can I check the complete sourcecode somehow? Perhaps by email?

The problem i think is not the background color because when i open the Keyboard the color is changed, is not html problem either. I am making scrollable only the main html element using:

top: 4rem;
background-color: #fff;
position: fixed;
width: 100%;
height: auto;
bottom: 0;
-webkit-overflow-scrolling: touch;
overflow-y: auto;

Ok, this is weird, i actually solved the problem removing the background color of the child element of the scrollable element. Inside the main tag was a menu tag with the same background color, i remove it and now all is white as it should.