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

fix editThickness for latte panels

This commit is contained in:
Michail Vourlakos 2021-01-08 00:45:33 +02:00
parent 069455be4e
commit e404abde4e

View File

@ -901,7 +901,9 @@ int View::editThickness() const
int ruler_height{m_fontPixelSize};
int header_height{m_fontPixelSize + 2*smallspacing};
return m_maxNormalThickness + ruler_height + header_height + 6*smallspacing;
int edgeThickness = behaveAsPlasmaPanel() && screenEdgeMarginEnabled() ? m_screenEdgeMargin : 0;
return edgeThickness + m_maxNormalThickness + ruler_height + header_height + 6*smallspacing;
}
int View::maxThickness() const