Skip to content

SoftKeyboardViewportSnapshot

What the renderer knows about its own geometry.

Import:

import type { SoftKeyboardViewportSnapshot } from 'obsidian-integration-testing';

Signature:

export interface SoftKeyboardViewportSnapshot

Properties

PropertyTypeDescription
devicePixelRationumberThe ratio between CSS pixels and the device pixels adb shell input tap speaks in.
innerHeightnumberThe viewport's height in CSS pixels.

Kept for the diagnostic as much as the decision: it does **not** shrink when the keyboard comes up.
inputRectElementRect | nullThe field's rect, which is what says whether the keyboard is up, or null when it is not on screen.
screenYnumberThe window's offset from the top of the screen, as the page understands it.

Links to this page: