Source set: Common
data class Horizontal(
private val menuAlignment: Alignment.Horizontal,
private val anchorAlignment: Alignment.Horizontal,
) : MenuPosition.Horizontal
A MenuPosition.Horizontal which horizontally aligns the given menuAlignment with the given anchorAlignment.
Functions
position
Source set: Common
override fun position(
anchorBounds: IntRect,
windowSize: IntSize,
menuWidth: Int,
layoutDirection: LayoutDirection,
): Int