Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window Background Color #70

Open
Montoya opened this issue Sep 8, 2015 · 2 comments
Open

Window Background Color #70

Montoya opened this issue Sep 8, 2015 · 2 comments

Comments

@Montoya
Copy link
Contributor

Montoya commented Sep 8, 2015

My app's HTML uses a black background, but the underlying native views have a white background, and this shows up when scrolling past the top or bottom. I like the 'bounce' scroll and don't want to remove it, but I would like to make the native view have a black background, so it looks seamless. I found some information on how to make the main view have a black background and make the webview transparent, but I cannot figure out where to actually place the code. Can anyone point me in the right direction?

@ghost
Copy link

ghost commented Nov 7, 2015

This may not be the best solution. However, it might solve your problem.

Make the body element cover the entire window with a property overflow: hidden; and then set the child element(s) with a property overflow: auto which turns the body element to be your new application background.

@mdings
Copy link

mdings commented Oct 26, 2016

and then set the child element(s) with a property overflow: auto

which disables the bouncing scroll effect if I'm not mistaking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants