fix the positioning problem

This commit is contained in:
Pico
2025-11-08 19:09:41 +03:00
parent 6b0572975f
commit 6fa417a4c1
@@ -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