From 794bd80a011baaa73bcc1860963055bbe8b9aa02 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 28 Nov 2011 12:33:28 +0100 Subject: [PATCH] base toolbar height on children height --- declarativeimports/plasmacomponents/qml/ToolBar.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/declarativeimports/plasmacomponents/qml/ToolBar.qml b/declarativeimports/plasmacomponents/qml/ToolBar.qml index 28ccc779c..963505f93 100644 --- a/declarativeimports/plasmacomponents/qml/ToolBar.qml +++ b/declarativeimports/plasmacomponents/qml/ToolBar.qml @@ -23,7 +23,7 @@ import org.kde.plasma.core 0.1 as PlasmaCore Item{ id: toolBar width: parent.width - height: (tools && enabled) ? theme.defaultFont.mSize.height*2 + frameSvg.margins.top + frameSvg.margins.bottom : 0 + height: (tools && enabled) ? tools.height + frameSvg.margins.top + frameSvg.margins.bottom : 0 visible: height > 0 Behavior on height { PropertyAnimation {