1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-29 07:52:50 -05:00

Don't allow popouts to go off screen

This commit is contained in:
bbedward
2025-09-26 13:47:40 -04:00
parent 99ef447a52
commit 01125e092c

View File

@@ -103,7 +103,7 @@ PanelWindow {
} }
return triggerX return triggerX
} }
readonly property real calculatedY: triggerY readonly property real calculatedY: Math.max(Theme.spacingM, Math.min(screenHeight - popupHeight - Theme.spacingM, triggerY))
width: popupWidth width: popupWidth
height: popupHeight height: popupHeight