I set the viewport tag to 480 pixels, so on the iPhone (portrait mode) the true dimensions of the website are:
- 480x534px when the top bar is displayed.
- 480x594px when the top panel is hidden
However, jQuery(window).height()
and window.innerHeight
and jQuery(window).InnerHeight()
ALWAYS return 480x534px, and this creates a 60px gap at the bottom of the website when trying to place the container height: 100%; width: 100%;
height: 100%; width: 100%;
on top of the current content (popup).
This is reported as a jQuery error already (and an iPhone error), but is there a workaround?
Atadj source share