mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 01:05:53 +08:00
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:
parent
b53c1ba306
commit
c136deb430
@ -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")
|
||||||
|
@ -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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user