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
This commit is contained in:
Konstantinos Karmas 2021-08-24 10:35:33 +02:00
parent a754b49299
commit 2718d6a69a

View File

@ -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