Preparing search index...

    Function getAutocompletePinScrollY

    • Scroll position that pins an autocomplete field AUTOCOMPLETE_PIN_GAP below the top of the scroll view. anchorTop and scrollViewTop must be measured in the same coordinate space at the same time.

      Parameters

      • currentScrollY: number

        Current vertical scroll offset of the scroll view

      • anchorTop: number

        Top edge of the focused autocomplete field

      • scrollViewTop: number

        Top edge of the scroll view

      Returns number

      The vertical offset to scroll to, never below 0