Remove top anchor from an element used in ColumnLayout

This element did need additional margins at the top. Added margins
to the ColumnLayout element instead.

CURA-8564
This commit is contained in:
casper 2021-11-29 14:34:15 +01:00
parent b53c1ba306
commit c136deb430
2 changed files with 2 additions and 3 deletions

View File

@ -40,6 +40,7 @@ Window
Rectangle Rectangle
{ {
anchors.fill: parent anchors.fill: parent
anchors.topMargin: UM.Theme.getSize("default_margin").height
color: UM.Theme.getColor("main_background") color: UM.Theme.getColor("main_background")
ColumnLayout ColumnLayout
@ -61,7 +62,7 @@ Window
Item Item
{ {
Layout.preferredWidth: parent.width Layout.preferredWidth: parent.width
Layout.preferredHeight: childrenRect.height + UM.Theme.getSize("default_margin").height Layout.preferredHeight: childrenRect.height
Label Label
{ {
@ -72,7 +73,6 @@ Window
leftMargin: UM.Theme.getSize("default_margin").width leftMargin: UM.Theme.getSize("default_margin").width
right: parent.right right: parent.right
rightMargin: UM.Theme.getSize("default_margin").width rightMargin: UM.Theme.getSize("default_margin").width
bottom: parent.bottom
} }
font: UM.Theme.getFont("large") font: UM.Theme.getFont("large")

View File

@ -22,7 +22,6 @@ Rectangle
margins: UM.Theme.getSize("default_margin").width margins: UM.Theme.getSize("default_margin").width
left: parent.left left: parent.left
right: parent.right right: parent.right
top: parent.top
} }
color: UM.Theme.getColor("action_panel_secondary") color: UM.Theme.getColor("action_panel_secondary")