1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -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
}
readonly property real calculatedY: triggerY
readonly property real calculatedY: Math.max(Theme.spacingM, Math.min(screenHeight - popupHeight - Theme.spacingM, triggerY))
width: popupWidth
height: popupHeight