Fix Simulation view popup not sizing down

I have no idea why implictHeight does work and childrenRect.height doesn't (eg;
childrenRect.height only scales up for some reason, never down)

CURA-5785
This commit is contained in:
Jaime van Kessel 2018-11-20 14:35:13 +01:00
parent 10621aacee
commit 3b4d728d6a

View file

@ -65,7 +65,7 @@ Cura.ExpandableComponent
property int top_layer_count: UM.Preferences.getValue("view/top_layer_count")
width: UM.Theme.getSize("layerview_menu_size").width - 2 * UM.Theme.getSize("default_margin").width
height: childrenRect.height
height: implicitHeight
spacing: UM.Theme.getSize("layerview_row_spacing").height