Skip to content

Commit 59fbbf5

Browse files
committed
update: [SuperDropdown] Format Code.
1 parent 491a590 commit 59fbbf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/extra/SuperDropdown.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)