Display last item with double width if there's room on the right side

If it's on the left side and it's the last item, it gets the entire width.

Contributes to issue CURA-3161.
This commit is contained in:
Ghostkeeper 2017-02-08 11:59:19 +01:00
parent 9f66ad1132
commit 2a114f1e53
No known key found for this signature in database
GPG Key ID: C5F96EE2BC0F7E75

View File

@ -91,6 +91,7 @@ Column
color: UM.Theme.getColor("sidebar") color: UM.Theme.getColor("sidebar")
width: extrudersGrid.width / 2 - UM.Theme.getSize("sidebar_lining_thin").width / 2 width: extrudersGrid.width / 2 - UM.Theme.getSize("sidebar_lining_thin").width / 2
height: UM.Theme.getSize("sidebar_extruder_box").height height: UM.Theme.getSize("sidebar_extruder_box").height
Layout.fillWidth: index == machineExtruderCount.properties.value - 1 && index % 2 == 0
Text //Extruder name. Text //Extruder name.
{ {