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

Mobile browser address bar scroll issue #2

Open
nmastroianni opened this issue Feb 16, 2016 · 1 comment
Open

Mobile browser address bar scroll issue #2

nmastroianni opened this issue Feb 16, 2016 · 1 comment

Comments

@nmastroianni
Copy link

The 100vh for the background image causes the image to resize when the address bar hides or comes back. The result is mildly jarring. I've been poking around stack overflow for ideas: http://stackoverflow.com/questions/24944925/background-image-jumps-when-address-bar-hides-ios-android-mobile-chrome
Perhaps this is just on my end. Just curious if anyone else can confirm.

@dungnguyennvd
Copy link

In chrome lastest. Add following css it auto hide address bar (URL bar) went scroll!

html { height: 100vh; }
body { height: 100%; }

And this is why: https://developers.google.com/web/updates/2016/12/url-bar-resizing

Hope to helpful!

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