Preparing search index...

    Function getAutocompleteMaxListHeight

    • Maximum height of the suggestion list so the bubble of a field pinned AUTOCOMPLETE_PIN_GAP below the scroll view top ends above the keyboard toolbar: the room between the pinned input's bottom and the keyboard, minus baseOffset (toolbar plus caret clearance) and the bubble's tail and padding. Independent of the rows shown, so it stays stable while typing.

      Parameters

      • baseOffset: number

        The form's bottomOffset (toolbar plus caret clearance)

      • fieldHeight: number | null

        Height of the focused autocomplete field, null for any other input

      • scrollViewTop: number | null

        Window y of the scroll view's top edge, null until measured

      • windowHeight: number

        Window height, as used by the keyboard-aware scroll view

      • keyboardHeight: number

        Height the keyboard has (or is animating to); 0 when hidden

      Returns number | undefined

      List height in pixels, never below one suggestion row; undefined (no cap) when no autocomplete field is focused above an open keyboard or the scroll view is not measured yet