I have the below html which is essentially 3 pages on 1 screen to allow for scrolling. Each of these 3 container divs have a height of 100%. It looks fine on desktop, but in mobile, the browser's address bar constantly hides itself when scrolling. This causes all the divs to change size since height with address bar is different than height without address bar. That makes things extremely jumpy and in general just a terrible experience.
How do 1) set the div to be 100% of the view assuming the address bar is not there and 2) make sure the address bar showing doesn't change the height of my divs?
I use 100% alot in my page...
<body>
<div id="top">
</div>
<div id="second">
</div>
<div id="third">
</div>
</body>
I found this link:
Background image jumps when address bar hides iOS/Android/Mobile Chrome
but it did not help me since $(window).height()
changes when the address bar is there or not, and I also am not using a background image.
The mobile I am testing on is a mobile chrome browser on android 4.3 galaxy nexus