Compose Unstyled 2.0 is out! Check the official announcement blog ->
Interface

MenuPositionScope

Provides context for calculating candidate menu positioning coordinates relative to window bounds.

Source set: Common
interface MenuPositionScope

Provides context for calculating candidate menu positioning coordinates relative to window bounds.

Properties

anchorBounds

Source set: Common
val anchorBounds: IntRect

The bounds of the anchor relative to window layout bounds.

windowSize

Source set: Common
val windowSize: IntSize

The overall size of the hosting window.

Source set: Common
val menuSize: IntSize

The calculated dimensions of the menu popup.

layoutDirection

Source set: Common
val layoutDirection: LayoutDirection

The current active layout direction (LTR or RTL).

Last updated: