update panel size based on automatic icon size

v0.6
Michail Vourlakos 8 years ago
parent 2f5404ce9c
commit 6e1f57c9f5

@ -97,8 +97,10 @@ Item{
property int panelSize: ((plasmoid.location === PlasmaCore.Types.BottomEdge) || property int panelSize: ((plasmoid.location === PlasmaCore.Types.BottomEdge) ||
(plasmoid.location === PlasmaCore.Types.TopEdge)) ? (plasmoid.location === PlasmaCore.Types.TopEdge)) ?
root.themePanelSize + belower.height: automaticPanelSize + belower.height:
root.themePanelSize + belower.width automaticPanelSize + belower.width
property int automaticPanelSize: Math.min(root.themePanelSize, root.iconSize + units.smallSpacing)
Behavior on opacity{ Behavior on opacity{
NumberAnimation { duration: 200 } NumberAnimation { duration: 200 }

Loading…
Cancel
Save