From 6fa417a4c1853776a123c63011a7951b07b8b458 Mon Sep 17 00:00:00 2001 From: Pico Date: Sat, 8 Nov 2025 19:09:41 +0300 Subject: [PATCH] fix the positioning problem --- .../ii/modules/common/widgets/DropdownButton.qml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/dots/.config/quickshell/ii/modules/common/widgets/DropdownButton.qml b/dots/.config/quickshell/ii/modules/common/widgets/DropdownButton.qml index 8443a1fa0..92aec88c6 100644 --- a/dots/.config/quickshell/ii/modules/common/widgets/DropdownButton.qml +++ b/dots/.config/quickshell/ii/modules/common/widgets/DropdownButton.qml @@ -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