From 485058c3def4bc56afc55c9c663a71822941a784 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 31 Aug 2018 15:50:34 +0200 Subject: [PATCH] Made queue have a max width CL-896 --- plugins/UM3NetworkPrinting/ClusterMonitorItem.qml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/UM3NetworkPrinting/ClusterMonitorItem.qml b/plugins/UM3NetworkPrinting/ClusterMonitorItem.qml index a7a18753fb..3ff012d6d4 100644 --- a/plugins/UM3NetworkPrinting/ClusterMonitorItem.qml +++ b/plugins/UM3NetworkPrinting/ClusterMonitorItem.qml @@ -79,20 +79,18 @@ Component anchors { - margins: UM.Theme.getSize("default_margin").width top: queuedLabel.bottom topMargin: 0 - left: parent.left + horizontalCenter: parent.horizontalCenter bottomMargin: 0 - right: parent.right bottom: parent.bottom } style: UM.Theme.styles.scrollview - + width: Math.min(800 * screenScaleFactor, maximumWidth) ListView { anchors.fill: parent - anchors.margins: UM.Theme.getSize("default_margin").height + //anchors.margins: UM.Theme.getSize("default_margin").height spacing: UM.Theme.getSize("default_margin").height - 10 // 2x the shadow radius model: OutputDevice.queuedPrintJobs @@ -103,6 +101,7 @@ Component anchors.left: parent.left anchors.right: parent.right anchors.rightMargin: UM.Theme.getSize("default_margin").height + anchors.leftMargin: UM.Theme.getSize("default_margin").height height: 175 * screenScaleFactor } }