rememberListPopupLayoutInfo

fun rememberListPopupLayoutInfo(alignment: PopupPositionProvider.Align, popupPositionProvider: PopupPositionProvider, parentBounds: IntRect, popupContentSize: IntSize): ListPopupLayoutInfo

Computes and remembers the ListPopupLayoutInfo for a list popup from its anchor and content size.

Parameters

alignment

The PopupPositionProvider.Align of the popup relative to the window.

popupPositionProvider

The PopupPositionProvider that computes the popup offset and margins.

parentBounds

The bounds of the anchor (parent) component in window coordinates.

popupContentSize

The measured size of the popup content; IntSize.Zero before it is measured.