mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-28 05:57:47 -04:00
Keep the modal, but relatively positioned
This commit is contained in:
1 parent
04ea742830
commit
fedec450cb
2 files changed
+12
No files matched your search
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user