File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/basic Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ object ListPopupDefaults {
267267 } else {
268268 anchorBounds.left + popupMargin.left
269269 }
270- val offsetY = if (windowBounds.height - anchorBounds.height > popupContentSize.height) {
270+ val offsetY = if (windowBounds.bottom - anchorBounds.bottom > popupContentSize.height) {
271271 // Show below
272272 anchorBounds.bottom + popupMargin.bottom
273273 } else if (anchorBounds.top - windowBounds.top > popupContentSize.height) {
@@ -321,7 +321,7 @@ object ListPopupDefaults {
321321 } else {
322322 anchorBounds.left + popupMargin.left
323323 }
324- offsetY = if (windowBounds.height - anchorBounds.height > popupContentSize.height) {
324+ offsetY = if (windowBounds.bottom - anchorBounds.bottom > popupContentSize.height) {
325325 // Show below
326326 anchorBounds.bottom + popupMargin.bottom
327327 } else if (anchorBounds.top - windowBounds.top > popupContentSize.height) {
You can’t perform that action at this time.
0 commit comments