From 09b73d7cb1f5412ab0ab1428f89cad38c998e036 Mon Sep 17 00:00:00 2001 From: Damocles Date: Sun, 12 Apr 2026 11:40:12 +0200 Subject: [PATCH] fix menu attr --- modules/TrayMenu.qml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/modules/TrayMenu.qml b/modules/TrayMenu.qml index b65d6c7..f2a1669 100644 --- a/modules/TrayMenu.qml +++ b/modules/TrayMenu.qml @@ -42,15 +42,13 @@ PanelWindow { id: panel x: Math.max(0, Math.min( - Math.round(menuWindow.anchorX - menuStack.implicitWidth / 2), - menuWindow.width - menuStack.implicitWidth + Math.round(menuWindow.anchorX - menuStack.width / 2), + menuWindow.width - menuStack.width )) y: M.Theme.barHeight - implicitWidth: menuStack.implicitWidth - implicitHeight: menuStack.implicitHeight - width: implicitWidth - height: implicitHeight + width: menuStack.width + height: menuStack.height // Eat clicks inside the panel so they don't reach the dismiss area above MouseArea { @@ -69,8 +67,8 @@ PanelWindow { StackView { id: menuStack - implicitWidth: currentItem ? currentItem.implicitWidth : 0 - implicitHeight: currentItem ? currentItem.implicitHeight : 0 + width: currentItem ? currentItem.implicitWidth : 0 + height: currentItem ? currentItem.implicitHeight : 0 // Push the root page once the stack is ready Component.onCompleted: {