Home > widget-integration > PositionService > applyMaxHeightToResults

PositionService.applyMaxHeightToResults() method

Apply max height to the results container inside the dropdown.

Signature:

applyMaxHeightToResults(container: HTMLElement, maxHeight: number): void;

Parameters

Parameter

Type

Description

container

HTMLElement

The dropdown container element

maxHeight

number

Maximum height in pixels

Returns:

void