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

View file

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