From d5b0883668dbb935bd94b801bda49f6d5012397a Mon Sep 17 00:00:00 2001 From: notiant <238434866+notiant@users.noreply.github.com> Date: Sat, 6 Dec 2025 13:02:08 +0100 Subject: [PATCH] DockMenu: apply uiScaleRatio to menuContentWidth --- Modules/Dock/DockMenu.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Dock/DockMenu.qml b/Modules/Dock/DockMenu.qml index 99f836686..6c4ffb0d3 100644 --- a/Modules/Dock/DockMenu.qml +++ b/Modules/Dock/DockMenu.qml @@ -35,7 +35,7 @@ PopupWindow { Text { id: textMeasure visible: false - font.pointSize: Style.fontSizeS + font.pointSize: Style.fontSizeS * Style.uiScaleRatio font.family: "Sans Serif" // Match your NText font if different wrapMode: Text.NoWrap elide: Text.ElideNone @@ -67,7 +67,7 @@ PopupWindow { } } // Apply a reasonable minimum width (like 120px) - menuContentWidth = Math.max(120, maxWidth); + menuContentWidth = Math.max(120, Math.ceil(maxWidth)); } function initItems() {