Switch the anchors to paddings

Otherwise the bottomb button would extend from the popup.

CURA-6598
This commit is contained in:
Jaime van Kessel 2019-09-04 16:54:35 +02:00
parent 7f3b55a286
commit 994e0e53cc
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -17,6 +17,9 @@ Popup
property color backgroundColor: UM.Theme.getColor("main_background")
property color borderColor: UM.Theme.getColor("lining")
topPadding: UM.Theme.getSize("narrow_margin").height
rightPadding: UM.Theme.getSize("default_lining").width
leftPadding: UM.Theme.getSize("default_lining").width
padding: 0
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent
background: Cura.RoundedRectangle
@ -36,18 +39,6 @@ Popup
contentItem: Column
{
anchors
{
left: parent.left
leftMargin: UM.Theme.getSize("default_lining").width
right: parent.right
rightMargin: UM.Theme.getSize("default_lining").width
top: parent.top
topMargin: UM.Theme.getSize("narrow_margin").height
}
// This repeater adds the intent labels
Repeater
{