Home > widget-integration > PositionService > calculateScrollZIndex

PositionService.calculateScrollZIndex() method

Calculate z-index based on scroll position relative to header.

When the search form scrolls behind the header, reduce z-index to prevent overlap issues.

Signature:

protected calculateScrollZIndex(): number;

Returns:

number

Appropriate z-index value