fix: content not center in some device & system in DropdownList

This commit is contained in:
2023-11-18 03:17:32 +08:00
parent 961f3d4cf7
commit ba35de4917

View File

@@ -203,7 +203,10 @@ fun DropdownList(
) {
val menuWidth = maxWidth + startPadding + endPadding
val menuHeight = with(LocalDensity.current) { menuHeightPx.toDp() }
Row(horizontalArrangement = Arrangement.SpaceBetween) {
Row(
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.SpaceBetween
) {
Box(modifier = Modifier.weight(1f)) { text() }
Icon(
modifier = Modifier.graphicsLayer {