1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

Fix positioning of power menu

This commit is contained in:
bbedward
2025-10-03 17:21:43 -04:00
parent fedec450cb
commit ddc88fd360
3 changed files with 19 additions and 5 deletions

View File

@@ -126,8 +126,9 @@ DankPopout {
if (powerMenuModalLoader) {
powerMenuModalLoader.active = true
if (powerMenuModalLoader.item) {
const globalPos = controlContent.mapToGlobal(0, 0)
powerMenuModalLoader.item.parentBounds = Qt.rect(globalPos.x, globalPos.y, controlContent.width, controlContent.height)
const popoutPos = controlContent.mapToItem(null, 0, 0)
powerMenuModalLoader.item.parentScreen = root.triggerScreen
powerMenuModalLoader.item.parentBounds = Qt.rect(popoutPos.x, popoutPos.y, controlContent.width, controlContent.height)
powerMenuModalLoader.item.open()
}
}