Skip to content

Commit 2b62b91

Browse files
committed
library: Fix wrong position of popup (#39)
1 parent b9943f6 commit 2b62b91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ fun calculateOffsetYPx(
529529
} else {
530530
// Middle
531531
dropdownOffsetPx + componentHeightPx / 2 - dropdownHeightPx / 2
532-
}).coerceIn(statusBarPx, windowHeightPx - captionBarPx - navigationBarPx)
532+
}).coerceIn(statusBarPx, windowHeightPx - captionBarPx - navigationBarPx - dropdownHeightPx)
533533
}
534534

535535
/**

0 commit comments

Comments
 (0)