activate properly mirror screen gap for panels

work/spdx
Michail Vourlakos 4 years ago
parent 9dcbb90aba
commit 10873a2295

@ -299,13 +299,12 @@ Item{
when: latteView && latteView.visibility
value: {
var isCapableToHideScreenGap = root.screenEdgeMarginEnabled && plasmoid.configuration.hideFloatingGapForMaximized
var mirrorGapFactor = root.mirrorScreenGap ? 2 : 1;
if (root.behaveAsPlasmaPanel) {
return isCapableToHideScreenGap ? thicknessAsPanel : (2*metrics.mask.screenEdge) + thicknessAsPanel;
return isCapableToHideScreenGap ? thicknessAsPanel : (mirrorGapFactor*metrics.mask.screenEdge) + thicknessAsPanel;
}
var mirrorGapFactor = root.mirrorScreenGap ? 2 : 1;
var edgeThickness = isCapableToHideScreenGap ? 0 : metrics.mask.screenEdge * mirrorGapFactor;
return edgeThickness + metrics.mask.thickness.maxNormalForItemsWithoutScreenEdge;
}

Loading…
Cancel
Save