mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-05 14:59:27 -05:00
fix the positioning problem
This commit is contained in:
@@ -131,6 +131,20 @@ Item {
|
||||
}
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: positionTracker
|
||||
interval: 8 // is this smooth enough?
|
||||
repeat: true
|
||||
running: root.popupVisible
|
||||
onTriggered: {
|
||||
if (popupContent.visible) {
|
||||
var pos = root.getGlobalPosition();
|
||||
popupContent.x = pos.x;
|
||||
popupContent.y = pos.y + root.height + 4;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
id: popupContent
|
||||
visible: root.popupVisible
|
||||
|
||||
Reference in New Issue
Block a user