From 6629c8d0cf3cbf296d237f65675877718cc147e3 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 10 Feb 2017 15:27:32 +0100 Subject: [PATCH] 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. --- resources/qml/PrintMonitor.qml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/qml/PrintMonitor.qml b/resources/qml/PrintMonitor.qml index f088e49c85..8abc5ec2c4 100644 --- a/resources/qml/PrintMonitor.qml +++ b/resources/qml/PrintMonitor.qml @@ -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. {