dropdownPositionProvider

fun dropdownPositionProvider(verticalMargin: Dp = 8.dp, horizontalMargin: Dp = 0.dp): PopupPositionProvider

Creates a PopupPositionProvider that anchors the popup directly below (or above when there is no room) the anchor, used by dropdown-style list popups.

Parameters

verticalMargin

The extra vertical margin between the popup and the anchor.

horizontalMargin

The extra horizontal margin applied to the popup.