fix #125,fix calculations for dock geometry

--this should fix the struts issues with
Always Visible state
v0.6
Michail Vourlakos 8 years ago
parent c07f8e3c61
commit f82a0897e1

@ -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…
Cancel
Save