Start native apps faster with the Composables CLI ->
Class

WindowAlignmentMarginPosition.Horizontal

A MenuPosition.Horizontal which horizontally aligns the menu within the window according to the given alignment.

Source set: Common
data class Horizontal(private val alignment: Alignment.Horizontal) : MenuPosition.Horizontal

A MenuPosition.Horizontal which horizontally aligns the menu within the window according to the given alignment.

Functions

position

Source set: Common
override fun position(
            anchorBounds: IntRect,
            windowSize: IntSize,
            menuWidth: Int,
            layoutDirection: LayoutDirection,
        ): Int