Use alignment instead of anchors

Since it's within a layout, you can't use anchors

CURA-8014
This commit is contained in:
Jaime van Kessel 2021-03-25 15:53:08 +01:00
parent 839ac63241
commit 4e80ac5138
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -80,12 +80,7 @@ Item
Rectangle
{
anchors
{
top: parent.top
topMargin: UM.Theme.getSize("default_margin").width / 2
horizontalCenter: parent.horizontalCenter
}
Layout.alignment: Qt.AlignHCenter
color: UM.Theme.getColor("viewport_overlay")
Image