From 18b2eaf2b3561d43bc630890024e4177c3944ddc Mon Sep 17 00:00:00 2001 From: higan Date: Fri, 13 Oct 2023 17:29:56 +0800 Subject: [PATCH] Rollback the padding --- core/src/main/kotlin/org/jetbrains/jewel/Dropdown.kt | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/core/src/main/kotlin/org/jetbrains/jewel/Dropdown.kt b/core/src/main/kotlin/org/jetbrains/jewel/Dropdown.kt index 59655650fe..d9c5dbf7b8 100644 --- a/core/src/main/kotlin/org/jetbrains/jewel/Dropdown.kt +++ b/core/src/main/kotlin/org/jetbrains/jewel/Dropdown.kt @@ -32,7 +32,6 @@ import androidx.compose.ui.input.InputModeManager import androidx.compose.ui.platform.LocalDensity import androidx.compose.ui.platform.LocalFocusManager import androidx.compose.ui.platform.LocalInputModeManager -import androidx.compose.ui.platform.LocalLayoutDirection import androidx.compose.ui.res.ResourceLoader import androidx.compose.ui.semantics.Role import androidx.compose.ui.window.Popup @@ -129,17 +128,14 @@ fun Dropdown( modifier = Modifier .fillMaxWidth() .padding(style.metrics.contentPadding) - .padding( - end = minSize.height - style.metrics.contentPadding.calculateRightPadding( - LocalLayoutDirection.current, - ), - ), + .padding(end = minSize.height), contentAlignment = Alignment.CenterStart, content = content, ) Box( - modifier = Modifier.size(arrowMinSize).align(Alignment.CenterEnd), + modifier = Modifier.size(arrowMinSize) + .align(Alignment.CenterEnd), contentAlignment = Alignment.Center, ) { val chevronIcon by style.icons.chevronDown.getPainter(resourceLoader, dropdownState)