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
This commit is contained in:
Konstantinos Karmas 2021-08-25 17:13:43 +02:00
parent 392cca431f
commit fcbb16b70c

View file

@ -40,7 +40,10 @@ Cura.ExpandablePopup
// Horizontal list that shows the extruders and their materials // Horizontal list that shows the extruders and their materials
RowLayout 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 visible: Cura.MachineManager.activeMachine ? Cura.MachineManager.activeMachine.hasMaterials : false
Repeater Repeater
{ {