You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The keyboard in Chrome today fully resizes the entire window, not just the visual viewport. So if you want to keep something above the keyboard, position: fixed, bottom: 0 will work.
There's an experimental flag (chrome://flags/#enable-osk-overscroll) that will cause the keyboard to resize only the visual viewport. In that case, window.inner/outerHeight won't change and you can use the difference with visualViewport.height to shift the element up. However, that's still experimental and it's not clear whether or not it will ship in this state.
If the browser UI properties could be exposed as CSS environment variables, we could use CSS to account for e.g. the keyboard height, see: w3c/csswg-drafts#2630 (comment) and the following comment.
In Chrome 61 running on Samsung S7:
So I can't set bottom = of my relatively positioned element.
The text was updated successfully, but these errors were encountered: