Skip to main content

Module use_visual_viewport

Module use_visual_viewport 

Source
Expand description

How much of the window an on-screen keyboard covers.

Functions§

use_keyboard_inset
The height, in CSS pixels, of the window’s bottom that an on-screen keyboard covers: what the visual viewport leaves of the layout viewport. Android with interactive-widget=resizes-content shrinks the layout viewport itself, so this stays 0 there; iOS keeps the layout viewport and shrinks only the visual one. Updated as the keyboard opens and closes, 0 off the browser.