mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-09 00:58:15 +03:00
fix #125,fix calculations for dock geometry
--this should fix the struts issues with Always Visible state
This commit is contained in:
parent
d3f39bccb5
commit
412fe601c6
@ -292,16 +292,18 @@ Item{
|
||||
if(panelIsBiggerFromIconSize && !root.drawShadowsExternal) {
|
||||
var shadow = root.panelShadow;
|
||||
|
||||
var fixedThickness = thicknessNormal - shadow;
|
||||
|
||||
if (plasmoid.formFactor === PlasmaCore.Types.Vertical) {
|
||||
newMaskArea.width = newMaskArea.width - shadow;
|
||||
newMaskArea.width = fixedThickness;
|
||||
} else {
|
||||
newMaskArea.height = newMaskArea.height - shadow;
|
||||
newMaskArea.height = fixedThickness;
|
||||
}
|
||||
|
||||
if (plasmoid.location === PlasmaCore.Types.BottomEdge) {
|
||||
newMaskArea.y = newMaskArea.y + shadow;
|
||||
newMaskArea.y = dock.height - fixedThickness;
|
||||
} else if (plasmoid.location === PlasmaCore.Types.RightEdge) {
|
||||
newMaskArea.x = newMaskArea.x + shadow;
|
||||
newMaskArea.x = dock.width - fixedThickness;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user