mirror of
https://github.com/BetterAndroid/FlexiUI.git
synced 2025-09-08 11:34:18 +08:00
fix: content not center in some device & system in DropdownList
This commit is contained in:
@@ -203,7 +203,10 @@ fun DropdownList(
|
|||||||
) {
|
) {
|
||||||
val menuWidth = maxWidth + startPadding + endPadding
|
val menuWidth = maxWidth + startPadding + endPadding
|
||||||
val menuHeight = with(LocalDensity.current) { menuHeightPx.toDp() }
|
val menuHeight = with(LocalDensity.current) { menuHeightPx.toDp() }
|
||||||
Row(horizontalArrangement = Arrangement.SpaceBetween) {
|
Row(
|
||||||
|
verticalAlignment = Alignment.CenterVertically,
|
||||||
|
horizontalArrangement = Arrangement.SpaceBetween
|
||||||
|
) {
|
||||||
Box(modifier = Modifier.weight(1f)) { text() }
|
Box(modifier = Modifier.weight(1f)) { text() }
|
||||||
Icon(
|
Icon(
|
||||||
modifier = Modifier.graphicsLayer {
|
modifier = Modifier.graphicsLayer {
|
||||||
|
Reference in New Issue
Block a user