mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-30 07:44:22 +08:00
Ensure that alignment is as set in the design
CURA-9278
This commit is contained in:
parent
614ab8ee7a
commit
017560480a
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user