forked from Shinonome/dots-hyprland
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 {
|
Rectangle {
|
||||||
id: popupContent
|
id: popupContent
|
||||||
visible: root.popupVisible
|
visible: root.popupVisible
|
||||||
|
|||||||
Reference in New Issue
Block a user