<div class='sourceset sourceset-common'>Common</div>

```kotlin
data class Vertical(private val alignment: Alignment.Vertical, private val margin: Int) :
        MenuPosition.Vertical
```

A [MenuPosition.Vertical](/jetpack-compose/androidx.compose.material3/material3/interfaces/MenuPosition.Vertical) which vertically aligns the menu within the window according to the
given [alignment](/jetpack-compose/androidx.glance/glance/classes/Alignment).

The resulting y position will be coerced so that the menu remains within the area inside the
given [margin](#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.