From 662dde077be107ca5a97ce45f300a828c953419b Mon Sep 17 00:00:00 2001 From: Tamara Hogenhout Date: Tue, 22 Sep 2015 17:31:47 +0200 Subject: [PATCH] Removes the little square panel thing for the per-object-settings Contributes to: issue CURA-181 --- resources/qml/Toolbar.qml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/resources/qml/Toolbar.qml b/resources/qml/Toolbar.qml index 08ad6a5ebc..ffdf0604a0 100644 --- a/resources/qml/Toolbar.qml +++ b/resources/qml/Toolbar.qml @@ -68,7 +68,14 @@ Item { anchors.left: parent.right; y: base.activeY - width: panel.item ? Math.max(panel.width + 2 * UM.Theme.sizes.default_margin.width) : 0; + width: { + if (panel.item && panel.width > 0){ + return Math.max(panel.width + 2 * UM.Theme.sizes.default_margin.width) + } + else { + return 0 + } + } height: panel.item ? panel.height + 2 * UM.Theme.sizes.default_margin.height : 0; opacity: panel.item ? 1 : 0