From bf30e69f08ca59eaaff014c3b69b5c15ff5b54af Mon Sep 17 00:00:00 2001 From: Joey de l'Arago Date: Mon, 2 Jan 2023 10:21:43 +0100 Subject: [PATCH] Change default implicitX for MaterialBrandSubMenu. CURA-9522 --- resources/qml/Menus/MaterialBrandMenu.qml | 4 ++-- resources/qml/Menus/MaterialBrandSubMenu.qml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/qml/Menus/MaterialBrandMenu.qml b/resources/qml/Menus/MaterialBrandMenu.qml index 4d200e9594..5a5838f4ca 100644 --- a/resources/qml/Menus/MaterialBrandMenu.qml +++ b/resources/qml/Menus/MaterialBrandMenu.qml @@ -94,8 +94,6 @@ Cura.MenuItem // We have to keep a count of itemHovered (instead of just a bool) property int itemHovered: 0 - implicitX: parent.width - UM.Theme.getSize("default_lining").width - MouseArea { id: submenuArea @@ -217,6 +215,8 @@ Cura.MenuItem MaterialBrandSubMenu { id: colorPopup + implicitX: parent.width + property int itemHovered: 0 Column diff --git a/resources/qml/Menus/MaterialBrandSubMenu.qml b/resources/qml/Menus/MaterialBrandSubMenu.qml index 9c237d12fe..bc02e79cdb 100644 --- a/resources/qml/Menus/MaterialBrandSubMenu.qml +++ b/resources/qml/Menus/MaterialBrandSubMenu.qml @@ -19,7 +19,7 @@ Popup implicitHeight: scrollViewContent.height + bottomPadding + topPadding // offset position relative to the parent - property int implicitX: parent.width + property int implicitX: parent.width - UM.Theme.getSize("default_lining").width property int implicitY: -UM.Theme.getSize("thin_margin").height default property alias contents: scrollViewContent.children