Use contentLoader.item to determine height

CURA-6435
This commit is contained in:
Lipu Fei 2019-04-05 08:54:20 +02:00
parent a5259ce22e
commit b68b154e59

View File

@ -60,7 +60,7 @@ Item
anchors.left: header.left
anchors.right: header.right
// Add 2x lining, because it needs a bit of space on the top and the bottom.
height: contentLoader.height + 2 * UM.Theme.getSize("thick_lining").height
height: contentLoader.item.height + 2 * UM.Theme.getSize("thick_lining").height
border.width: UM.Theme.getSize("default_lining").width
border.color: UM.Theme.getColor("lining")