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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user