DropdownMenuPopupPositionProvider


PopupPositionProvider that communicates the TransformOrigin to dropdown menu's implementation.

Summary

Public properties

TransformOrigin

The calculated TransformOrigin of the dropdown menu popup relative to its anchor.

Cmn

Inherited functions

From androidx.compose.ui.window.PopupPositionProvider
IntOffset
calculatePosition(
    anchorBounds: IntRect,
    windowSize: IntSize,
    layoutDirection: LayoutDirection,
    popupContentSize: IntSize
)

Calculates the position of a Popup on screen.

Cmn

Public properties

transformOrigin

val transformOriginTransformOrigin

The calculated TransformOrigin of the dropdown menu popup relative to its anchor.

This origin is used to animate (e.g. scale) the menu from the correct point relative to where the menu is positioned.