fix visual glitch when hiding toolbar

This commit is contained in:
Sebastian Kügler 2012-03-20 02:35:20 +01:00
parent 61cafd3215
commit 7bffae49d1

View File

@ -70,14 +70,16 @@ Item {
onToolsChanged: { onToolsChanged: {
//print("tools changed:" + typeof(tools) + " " + tools.id); //print("tools changed:" + typeof(tools) + " " + tools.id);
var shown; //var shown;
// FIXME: Horrible hack, improve heuristics here. // FIXME: Horrible hack, improve heuristics here.
if (tools.childrenRect.width > 20) { if (tools.childrenRect.width > 20) {
shown = true; //shown = true;
height = 48;
} else { } else {
shown = false; //shown = false;
height = 0;
} }
visible = shown;
} }
} }