postcsslayouts icon indicating copy to clipboard operation
postcsslayouts copied to clipboard

Mobile browser address bar scroll issue

Open nmastroianni opened this issue 10 years ago • 1 comments

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.

nmastroianni avatar Feb 16 '16 03:02 nmastroianni

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!

dungnguyennvd avatar Dec 25 '20 06:12 dungnguyennvd