# DropdownMenuPopupPositionProvider

Artifact: [androidx.compose.material3:material3](https://developer.android.com/jetpack/androidx/releases/compose-material3) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/Menu.kt+class:androidx.compose.material3.DropdownMenuPopupPositionProvider) Common/AllAndroid/JVM
- Cmn

  ```
  interface DropdownMenuPopupPositionProvider : PopupPositionProvider
  ```

*** ** * ** ***

`https://developer.android.com/reference/kotlin/androidx/compose/ui/window/PopupPositionProvider` that communicates the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TransformOrigin` to dropdown menu's implementation.

## Summary

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TransformOrigin` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/DropdownMenuPopupPositionProvider#transformOrigin()` The calculated `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TransformOrigin` of the dropdown menu popup relative to its anchor. | Cmn |

### Inherited functions

From [androidx.compose.ui.window.PopupPositionProvider](https://developer.android.com/reference/kotlin/androidx/compose/ui/window/PopupPositionProvider) `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntOffset` `https://developer.android.com/reference/kotlin/androidx/compose/ui/window/PopupPositionProvider#calculatePosition(androidx.compose.ui.unit.IntRect,androidx.compose.ui.unit.IntSize,androidx.compose.ui.unit.LayoutDirection,androidx.compose.ui.unit.IntSize)(
anchorBounds: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntRect,
windowSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntSize,
layoutDirection: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/LayoutDirection,
popupContentSize: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntSize
)`

Calculates the position of a `https://developer.android.com/reference/kotlin/androidx/compose/ui/window/Popup.composable#Popup(androidx.compose.ui.Alignment,androidx.compose.ui.unit.IntOffset,kotlin.Function0,androidx.compose.ui.window.PopupProperties,kotlin.Function0)` on screen.
Cmn

## Public properties

### transformOrigin

Cmn

```
val transformOrigin: TransformOrigin
```

The calculated `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TransformOrigin` of the dropdown menu popup relative to its anchor.

This origin is used to animate (e.g. scale) the menu from the correct point relative to where the menu is positioned.