From 2718d6a69a1eb9412fa3ac0618bf806175da069e Mon Sep 17 00:00:00 2001 From: Konstantinos Karmas Date: Tue, 24 Aug 2021 10:35:33 +0200 Subject: [PATCH] Change the ColumnLayout to Column in the ConfigurationMenu When the labels were getting truncated and invisible after reducing the width of Cura's window, their visibility wasn't being restored back and, as a result, the `materialTypeLabel` was the only one that was remaining visible, even if there was enough space for the full `materialBrandColorTypeLabel`. Changing the ColumnLayout to a Column, where the width is inherited from the parent, fixes that issue. CURA-8496 --- .../qml/Menus/ConfigurationMenu/ConfigurationMenu.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml b/resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml index 8c09a5ffad..1a04b85fcb 100644 --- a/resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml +++ b/resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml @@ -60,7 +60,7 @@ Cura.ExpandablePopup anchors.verticalCenter: parent.verticalCenter } - ColumnLayout + Column { opacity: model.enabled ? 1 : UM.Theme.getColor("extruder_disabled").a spacing: 0 @@ -83,7 +83,7 @@ Cura.ExpandablePopup font: UM.Theme.getFont("default") color: UM.Theme.getColor("text") renderType: Text.NativeRendering - Layout.preferredWidth: parent.width + width: parent.width visible: !truncated } @@ -96,7 +96,7 @@ Cura.ExpandablePopup font: UM.Theme.getFont("default") color: UM.Theme.getColor("text") renderType: Text.NativeRendering - Layout.preferredWidth: parent.width + width: parent.width visible: !materialBrandColorTypeLabel.visible && !truncated } @@ -109,7 +109,7 @@ Cura.ExpandablePopup font: UM.Theme.getFont("default") color: UM.Theme.getColor("text") renderType: Text.NativeRendering - Layout.preferredWidth: parent.width + width: parent.width visible: !materialBrandColorTypeLabel.visible && !materialColorTypeLabel.visible } // Label that shows the name of the variant