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:
@@ -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