Reputation: 3403
I cannot seem to find the workaround for this.
On ios9 in mobile safari, if a webapp uses position:absolute
and bottom:0
for the content area to cover the whole screen, when in landscape mode
the safari navigation bar will cover the bottom of the content and you cannot scroll past it - it does NOT block in portrait.
So why does safari get bottom:0
correct in portrait but not landscape?
Upvotes: 15
Views: 7538
Reputation: 51
I had same problem, on orientation change if its in landscape
mode, change your viewport
meta to:
width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no
I'm doing this by simply finding $('meta[name="viewport"]')
and replacing its content
.
Upvotes: 2
Reputation: 3403
setting position:fixed
on the html
element magically fixed this
html { position:fixed; width:100%; height:100%; overflow:hidden; }
not sure why but must be a rendering bug that fixed
works around
for some reason fixed
also change the font size in landscape but I can work around that too
Upvotes: 10