-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should be recalculated on resize? #70
Comments
Are your problems resolved when initializing the buggyfill with |
I've checked it and I've fixed this issue by adding (since disappearing tab bar on scroll triggers resize). window.onresize = function() {
viewportUnitsBuggyfill.refresh();
}; edit OK, now I understand So this docs is not clear for me:
I doesn't say that with |
@rodneyrehm I think I know the/one reason: I used buggyfill to prevent the annoying behaviour of the smartphone-resizing of the viewheight when scrolling up/down. With {force:true} this behaviour occured again. So I prefer @chodorowicz 's solution... thanks for the hint! |
@tracid or @chodorowicz would you be able to provide an example as to the method you're using to fix the buggy behavior on mobile (address bar jumps). Thanks so much (also I don't mean to hijack this thread). |
@aulneau
|
The script recalculates on
orientationchange
event. I think we should recalculate dimensions on other events. One case I have currently problem with is scrolling on iOS Safari. When you scroll down the tab bar disappear and viewport height changes (expands by viewport height). We could usewindow.onresize
event. Maybe there's some other way?The text was updated successfully, but these errors were encountered: