From 6e59f49bd5fda06db1d6ac2fead6fc13e6bb5eb6 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 8 Feb 2016 16:18:45 +0100 Subject: [PATCH] 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. --- plugins/PerObjectSettingsTool/PerObjectSettingsPanel.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/PerObjectSettingsTool/PerObjectSettingsPanel.qml b/plugins/PerObjectSettingsTool/PerObjectSettingsPanel.qml index 6bcec10e71..41f9bdd779 100644 --- a/plugins/PerObjectSettingsTool/PerObjectSettingsPanel.qml +++ b/plugins/PerObjectSettingsTool/PerObjectSettingsPanel.qml @@ -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;