1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

Keep the modal, but relatively positioned

This commit is contained in:
bbedward
2025-10-03 17:16:34 -04:00
parent 04ea742830
commit fedec450cb
2 changed files with 12 additions and 0 deletions

View File

@@ -126,6 +126,8 @@ 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)
powerMenuModalLoader.item.open()
}
}