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