Fix per-object setting categories hiding when folding them

When the categories were folded closed, they were suddenly hidden because then the settings' height became 0. Now it uses the actual height of the children regardless of whether they are visible or not, which makes them properly remain visible while closed.

Contributes to issue CURA-548.
This commit is contained in:
Ghostkeeper 2016-02-08 16:18:45 +01:00
parent f05da7212a
commit 6e59f49bd5

View file

@ -193,7 +193,7 @@ Item {
width: parent.width;
height: childrenRect.height;
visible: model.visible && settingsColumn.height != 0 //If all children are hidden, the height is 0, and then the category header must also be hidden.
visible: model.visible && settingsColumn.childrenHeight != 0 //If all children are hidden, the height is 0, and then the category header must also be hidden.
ToolButton {
id: categoryHeader;