Add 16.dp offset to the menu

This commit is contained in:
Benoit Marty 2023-06-28 18:44:50 +02:00 committed by Benoit Marty
parent c1ae0ffa58
commit 348fab5962

View file

@ -28,7 +28,8 @@ fun DropdownMenu(
expanded: Boolean,
onDismissRequest: () -> Unit,
modifier: Modifier = Modifier,
offset: DpOffset = DpOffset(0.dp, 0.dp),
// By default add a 16.dp offset to the menu
offset: DpOffset = DpOffset(x = 16.dp, y = 0.dp),
properties: PopupProperties = PopupProperties(focusable = true),
content: @Composable ColumnScope.() -> Unit
) {