1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-13 04:58:18 +03:00

improve how panel thickness is calculated

--always provide the needed high margin for the panel
background thickness
This commit is contained in:
Michail Vourlakos 2019-03-02 15:41:09 +02:00
parent bd2336b7af
commit 4702bc0694

View File

@ -203,17 +203,14 @@ Item{
property int panelSize: automaticPanelSize
property int automaticPanelSize: {
if (root.behaveAsPlasmaPanel) {
return root.iconSize + root.thickMargins;
return root.iconSize + root.thickMargins + root.panelThickMarginHigh;
} else {
var icons = root.iconSize + root.thickMargins + 1;
var icons = root.iconSize + root.thickMargins + root.panelThickMarginHigh;
var panelt = root.themePanelThickness + root.panelThickMarginHigh;
root.realPanelThickness = icons;
if (icons > panelt) {
return panelt;
} else {
return icons;
}
return Math.min(icons, panelt);
}
}