diff --git a/containment/contents/ui/PanelBox.qml b/containment/contents/ui/PanelBox.qml index 50c670722..7aabeee89 100644 --- a/containment/contents/ui/PanelBox.qml +++ b/containment/contents/ui/PanelBox.qml @@ -100,7 +100,7 @@ Item{ property int marginsHeight: root.drawShadowsExternal ? 0 : margins.top + margins.bottom property int panelSize: automaticPanelSize - property int automaticPanelSize: root.drawShadowsExternal ? (root.nowDock ? 1.2*plasmoid.configuration.iconSize + 1 : 1.12 * plasmoid.configuration.iconSize + 1) + property int automaticPanelSize: root.drawShadowsExternal ? 1.2*plasmoid.configuration.iconSize + 1 : Math.min(root.themePanelSize + root.panelShadow + 1, root.statesLineSize + root.iconSize + root.iconMargin + 1)