calculatePosition

abstract fun calculatePosition(anchorBounds: IntRect, windowBounds: IntRect, layoutDirection: LayoutDirection, popupContentSize: IntSize, popupMargin: IntRect, alignment: PopupPositionProvider.Align): IntOffset

Calculate the position (offset) of Popup

Parameters

anchorBounds

Bounds of the anchored (parent) component

windowBounds
layoutDirection
popupContentSize

Actual size of the popup content

popupMargin

(Extra) Margins for the popup content. See PopupPositionProvider.getMargins

alignment

Alignment of the popup (relative to the window). See PopupPositionProvider.Align