Ensure that alignment is as set in the design

CURA-9278
This commit is contained in:
Jaime van Kessel 2022-09-16 14:34:36 +02:00
parent 614ab8ee7a
commit 017560480a
No known key found for this signature in database
GPG Key ID: C85F7A3AF1BAA7C4

View File

@ -15,6 +15,7 @@ Rectangle
property var extruders property var extruders
property var manager property var manager
width: parent.width width: parent.width
height: childrenRect.height + 2 * UM.Theme.getSize("default_margin").height height: childrenRect.height + 2 * UM.Theme.getSize("default_margin").height
@ -35,7 +36,7 @@ Rectangle
Layout.preferredWidth: parent.width / 3 Layout.preferredWidth: parent.width / 3
Layout.fillWidth: true Layout.fillWidth: true
Layout.alignment: Qt.AlignTop Layout.alignment: extruders[0].materials.length > 1 ? Qt.AlignTop: Qt.AlignCenter
Layout.fillHeight: false Layout.fillHeight: false
source: UM.Theme.getIcon("Printer") source: UM.Theme.getIcon("Printer")
@ -114,7 +115,7 @@ Rectangle
implicitWidth: UM.Theme.getSize("large_button").width implicitWidth: UM.Theme.getSize("large_button").width
implicitHeight: implicitWidth implicitHeight: implicitWidth
Layout.alignment: Qt.AlignTop Layout.alignment: extruders[0].materials.length > 1 ? Qt.AlignTop: Qt.AlignCenter
padding: 0 padding: 0
background: Rectangle background: Rectangle