Closed wizardlyhel closed 9 years ago
The problem here is that there is no way with javascript to know when the state of the address bar changed. Resize event is not fired when the address bar changes from maximum to minimum state and vice versa.
Possible Solutions
Solution 1
Use the minimal-ui
viewport property to keep the address bar in minimum state unless user taps on the address bar manually.
(Rejected by @jeffkamo and @ry5n ) We should not be changing the default behaviour of the browser as it will confuse users
Solution 2 While pinny is open, keep firing window.scrollTo(0,1). http://24ways.org/2011/raising-the-bar-on-mobile/ OR fire window.scrollTo(0,1) whenever there is an interaction within pinny.
(Rejected) Shooting myself for even mentioning this solution. This solution will conflict with the input jump fix solution that we have in the current build.
We will need to have a more generalized solution for this issue, says @scalvert
Crazy bug. You'd think they'd fire off a resize event :-/ What about polling the window height?
@ericmuyser I am certain that resize event is not fired on iOS safari. I am not sure about actual window height. We can definitely look into it.
Steps to reproduce:
Result: All actionable element focus points of the pinny are shifted. This becomes a major issue if there is a fixed footer in Pinny where the url address bar hides the footer.
This can be very easily reproduced on iOS 7.x and below.