SoftKeyboardViewportSnapshot
What the renderer knows about its own geometry.
Import:
import type { SoftKeyboardViewportSnapshot } from 'obsidian-integration-testing';Signature:
export interface SoftKeyboardViewportSnapshotProperties
| Property | Type | Description |
|---|---|---|
| devicePixelRatio | number | The ratio between CSS pixels and the device pixels adb shell input tap speaks in. |
| innerHeight | number | The viewport's height in CSS pixels. Kept for the diagnostic as much as the decision: it does **not** shrink when the keyboard comes up. |
| inputRect | ElementRect | null | The field's rect, which is what says whether the keyboard is up, or null when it is not on screen. |
| screenY | number | The window's offset from the top of the screen, as the page understands it. |
Links to this page: