First printer tile no longer has shadow cut off from top

CL-894
This commit is contained in:
Jaime van Kessel 2018-08-24 13:50:52 +02:00
parent c13f252193
commit bc651fea92

View file

@ -70,14 +70,19 @@ Component
leftMargin: 2 * UM.Theme.getSize("default_margin").width
rightMargin: 2 * UM.Theme.getSize("default_margin").width
}
spacing: UM.Theme.getSize("default_margin").height
spacing: UM.Theme.getSize("default_margin").height -10
model: OutputDevice.printers
delegate: Rectangle
delegate: Item
{
width: parent.width
height: base.height + 2 * base.shadowRadius // To ensure that the shadow doesn't get cut off.
Rectangle
{
width: parent.width - 2 * shadowRadius
height: childrenRect.height + UM.Theme.getSize("default_margin").height
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
id: base
property var shadowRadius: 5
property var collapsed: true
@ -99,7 +104,6 @@ Component
top: parent.top
left: parent.left
right: parent.right
margins: UM.Theme.getSize("default_margin").width
}
@ -385,3 +389,4 @@ Component
}
}
}
}