Made queue have a max width

CL-896
This commit is contained in:
Jaime van Kessel 2018-08-31 15:50:34 +02:00
parent 3ce9b481a2
commit 485058c3de

View File

@ -79,20 +79,18 @@ Component
anchors anchors
{ {
margins: UM.Theme.getSize("default_margin").width
top: queuedLabel.bottom top: queuedLabel.bottom
topMargin: 0 topMargin: 0
left: parent.left horizontalCenter: parent.horizontalCenter
bottomMargin: 0 bottomMargin: 0
right: parent.right
bottom: parent.bottom bottom: parent.bottom
} }
style: UM.Theme.styles.scrollview style: UM.Theme.styles.scrollview
width: Math.min(800 * screenScaleFactor, maximumWidth)
ListView ListView
{ {
anchors.fill: parent 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 spacing: UM.Theme.getSize("default_margin").height - 10 // 2x the shadow radius
model: OutputDevice.queuedPrintJobs model: OutputDevice.queuedPrintJobs
@ -103,6 +101,7 @@ Component
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: UM.Theme.getSize("default_margin").height anchors.rightMargin: UM.Theme.getSize("default_margin").height
anchors.leftMargin: UM.Theme.getSize("default_margin").height
height: 175 * screenScaleFactor height: 175 * screenScaleFactor
} }
} }