From 744fe720d2f9dd5e06d253a787307fb64df6d26e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Mon, 2 Apr 2012 17:45:41 +0200 Subject: [PATCH] Improve clipping in App --- declarativeimports/plasmaextracomponents/qml/App.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/declarativeimports/plasmaextracomponents/qml/App.qml b/declarativeimports/plasmaextracomponents/qml/App.qml index 29a3b92eb..26ed22560 100644 --- a/declarativeimports/plasmaextracomponents/qml/App.qml +++ b/declarativeimports/plasmaextracomponents/qml/App.qml @@ -96,7 +96,7 @@ Item { onToolsChanged: { // FIXME: questionable heuristics - height = (tools.childrenRect.width > 20) ? tools.childrenRect.height + space : 0 + height = (tools && tools.childrenRect.width > 20) ? tools.childrenRect.height + space : 0 } } @@ -124,6 +124,7 @@ Item { clip: true width: navigationWidth + space Item { + clip: true id: navigationItem anchors.fill: parent }