Class

WindowAlignmentMarginPosition.Vertical

A MenuPosition.Vertical which vertically aligns the menu within the window according to the given alignment.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Common
data class Vertical(private val alignment: Alignment.Vertical, private val margin: Int) :
        MenuPosition.Vertical

A MenuPosition.Vertical which vertically aligns the menu within the window according to the given alignment.

The resulting y position will be coerced so that the menu remains within the area inside the given margin from the top and bottom edges of the window. If this is not possible, i.e., the menu is too tall, then it is centered vertically instead.