File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/extra Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ fun SuperDropdown(
207207 val dropdownMaxHeight by rememberUpdatedState(with (density) {
208208 (windowHeightPx - statusBarPx - navigationBarPx - captionBarPx ).toDp()
209209 })
210- val insideWidthPx by rememberUpdatedState(with (density){ insideMargin.width.toPx() }.roundToInt())
210+ val insideWidthPx by rememberUpdatedState(with (density) { insideMargin.width.toPx() }.roundToInt())
211211 val insideHeightPx by rememberUpdatedState(with (density) { insideMargin.height.toPx() }.roundToInt())
212212 val displayCutoutLeftSize = rememberUpdatedState(with (density) {
213213 WindowInsets .displayCutout.asPaddingValues(density).calculateLeftPadding(LayoutDirection .Ltr ).toPx()
@@ -388,7 +388,7 @@ fun calculateOffsetYPx(
388388 } else if (dropdownOffsetPx - statusBarPx > dropdownHeightPx) {
389389 // Show above
390390 dropdownOffsetPx - dropdownHeightPx + insideHeightPx / 2
391- } else if (windowHeightPx - statusBarPx - captionBarPx - navigationBarPx <= dropdownHeightPx) {
391+ } else if (windowHeightPx - statusBarPx - captionBarPx - navigationBarPx <= dropdownHeightPx) {
392392 // Special handling when the height of the popup is maxsize (== windowHeightPx)
393393 statusBarPx
394394 } else if (windowHeightPx - dropdownOffsetPx < dropdownHeightPx / 2 + captionBarPx + navigationBarPx + insideHeightPx + componentHeightPx / 2 ) {
You can’t perform that action at this time.
0 commit comments