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 7fd6851c65
commit ecafa8fba0

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
) {