Home > widget-integration > PositionService > calculateMaxHeight

PositionService.calculateMaxHeight() method

Calculate maximum height for the dropdown.

**Legacy**: calcMaxHeightByStyle - Hard-coded values based on style **New**: Configurable with style-specific constraints and suggestionMaxHeight support

Signature:

calculateMaxHeight(searchSettings: SearchSettings$1, availableHeight: number): number;

Parameters

Parameter

Type

Description

searchSettings

SearchSettings$1

Search settings

availableHeight

number

Available viewport height

Returns:

number

Maximum height in pixels