From fcbb16b70cd3d1f3e29981098e52ae386852a8d3 Mon Sep 17 00:00:00 2001 From: Konstantinos Karmas Date: Wed, 25 Aug 2021 17:13:43 +0200 Subject: [PATCH] Account for the width of the arrow in the Extruders row Although the ExpandablePopup already sets the anchors of the `headerItem` to account for the arrow icon on the right side, the ConfigurationMenu's extruder row was ignoring it, thus making the elided text of the last extruder to overlap with the arrow icon a bit. This commit fixes that by explicitly accounting for the width of the arrow in the extruders row. **Note:** if the Cura window gets resized way too much, the extruder icons will still overlap with the arrow, since there is no space to fit everything. CURA-8496 --- resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml b/resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml index 1a04b85fcb..e9c706334a 100644 --- a/resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml +++ b/resources/qml/Menus/ConfigurationMenu/ConfigurationMenu.qml @@ -40,7 +40,10 @@ Cura.ExpandablePopup // Horizontal list that shows the extruders and their materials RowLayout { - anchors.fill: parent + anchors.top: parent.top + anchors.bottom: parent.bottom + anchors.left: parent.left + width: parent.width - UM.Theme.getSize("standard_arrow").width visible: Cura.MachineManager.activeMachine ? Cura.MachineManager.activeMachine.hasMaterials : false Repeater {