From 7bffae49d1a808cca8a1550282cedb8a50d0f325 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Tue, 20 Mar 2012 02:35:20 +0100 Subject: [PATCH] fix visual glitch when hiding toolbar --- declarativeimports/plasmaextracomponents/qml/App.qml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/declarativeimports/plasmaextracomponents/qml/App.qml b/declarativeimports/plasmaextracomponents/qml/App.qml index 0c371b37a..eba87e836 100644 --- a/declarativeimports/plasmaextracomponents/qml/App.qml +++ b/declarativeimports/plasmaextracomponents/qml/App.qml @@ -70,14 +70,16 @@ Item { onToolsChanged: { //print("tools changed:" + typeof(tools) + " " + tools.id); - var shown; + //var shown; // FIXME: Horrible hack, improve heuristics here. if (tools.childrenRect.width > 20) { - shown = true; + //shown = true; + height = 48; } else { - shown = false; + //shown = false; + height = 0; + } - visible = shown; } }