Anchor last-row extruder box to left and right to stretch it

Layout.fillwidth seems to only stretch the box to full width on the first row, but without it the entire thing doesn't stretch. Leaving the width out will make the entire left column stretch so that the right column is no longer visible. It's all a bit weird, this QML stuff.

Contributes to issue CURA-3161.
This commit is contained in:
Ghostkeeper 2017-02-10 15:27:32 +01:00
parent b69ec56f66
commit 6629c8d0cf
No known key found for this signature in database
GPG Key ID: C5F96EE2BC0F7E75

View File

@ -85,6 +85,8 @@ Column
width: extrudersGrid.width / 2 - UM.Theme.getSize("sidebar_lining_thin").width / 2
height: UM.Theme.getSize("sidebar_extruder_box").height
Layout.fillWidth: index == machineExtruderCount.properties.value - 1 && index % 2 == 0
anchors.right: (index == machineExtruderCount.properties.value - 1 && index % 2 == 0) ? parent.right : undefined
anchors.left: (index == machineExtruderCount.properties.value - 1 && index % 2 == 0) ? parent.left : undefined
Label //Extruder name.
{