SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Function useVisualViewportRect

    • The visual viewport's size and offset, re-rendering as it changes. null on the server, in a browser without window.visualViewport, or while enabled is false.

      Parameters

      • enabled: boolean = true

        Subscribe only while true; a component that needs the rect in one configuration (the studio with its formula bar at the bottom) pays nothing in the others.

      Returns VisualViewportRect | null

      The signal behind a chrome that must stay above the virtual keyboard: the rect's height is the room left once the keyboard is up, and offsetTop is how far the browser has moved the visible part under a layout that did not shrink.