From 70d69031fe6888f654647b0574cfe4adf94eec19 Mon Sep 17 00:00:00 2001 From: Joey de l'Arago Date: Thu, 29 Dec 2022 13:08:15 +0100 Subject: [PATCH] Fix width being incorrect on first time opening popups CURA-9522 --- resources/qml/Menus/MaterialBrandSubMenu.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/qml/Menus/MaterialBrandSubMenu.qml b/resources/qml/Menus/MaterialBrandSubMenu.qml index af7e6cfb0e..1cd9d04b5c 100644 --- a/resources/qml/Menus/MaterialBrandSubMenu.qml +++ b/resources/qml/Menus/MaterialBrandSubMenu.qml @@ -81,6 +81,10 @@ Popup materialBrandSubMenu.width = mainWindow.width; } } + + + // This function can cause the scrollbar.width to update but this won't update the width (bug?) so it is done explicitly here. + width = scrollViewContent.width + scrollbar.width + leftPadding + rightPadding } padding: background.border.width