Skip to main content

use_keyboard_inset

Function use_keyboard_inset 

Source
pub fn use_keyboard_inset() -> Signal<f64>
Expand description

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.