From 6e1f57c9f57febe88103e6371be51df5fc254801 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sun, 29 Jan 2017 15:25:45 +0200 Subject: [PATCH] update panel size based on automatic icon size --- containment/contents/ui/PanelBox.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/containment/contents/ui/PanelBox.qml b/containment/contents/ui/PanelBox.qml index 87e125ed3..c597b422c 100644 --- a/containment/contents/ui/PanelBox.qml +++ b/containment/contents/ui/PanelBox.qml @@ -97,8 +97,10 @@ Item{ property int panelSize: ((plasmoid.location === PlasmaCore.Types.BottomEdge) || (plasmoid.location === PlasmaCore.Types.TopEdge)) ? - root.themePanelSize + belower.height: - root.themePanelSize + belower.width + automaticPanelSize + belower.height: + automaticPanelSize + belower.width + + property int automaticPanelSize: Math.min(root.themePanelSize, root.iconSize + units.smallSpacing) Behavior on opacity{ NumberAnimation { duration: 200 }