dropdown Position Provider
fun dropdownPositionProvider(verticalMargin: Dp = 8.dp, horizontalMargin: Dp = HorizontalBarrier): 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.
When the anchor bounds arrive collapsed to a single point — which is what Modifier.preciseClickAnchor produces from the recorded touch point — the popup is centred on that point and the vertical gap to the anchor is dropped, matching COUI PopupMenuLocateHelper.setAnchor: it collapses mAnchorBounds to (left + x, top + y) and pairs it with the context rule's EMPTY_OUTSETS instead of DEFAULT_ANCHOR_OUTSETS.
Parameters
vertical Margin
The extra vertical margin between the popup and the anchor.
horizontal Margin
The extra horizontal margin applied to the popup.