calculate Position
abstract fun calculatePosition(anchorBounds: IntRect, windowBounds: IntRect, layoutDirection: LayoutDirection, popupContentSize: IntSize, popupMargin: IntRect, alignment: PopupPositionProvider.Align): IntOffset
Calculate the position (offset) of Popup
Parameters
anchor Bounds
Bounds of the anchored (parent) component
window Bounds
Bounds of the safe area of window (excluding the WindowInsets.Companion.statusBars, WindowInsets.Companion.navigationBars and WindowInsets.Companion.captionBar)
layout Direction
popup Content Size
Actual size of the popup content
popup Margin
(Extra) Margins for the popup content. See PopupPositionProvider.getMargins
alignment
Alignment of the popup (relative to the window). See PopupPositionProvider.Align