remove no needed calculations

work/m_edgeslide
Michail Vourlakos 3 years ago
parent 2cbb3bc4b6
commit 8c0496a3ee

@ -9,7 +9,7 @@ import org.kde.latte.core 0.2 as LatteCore
AppletsContainer { AppletsContainer {
id: parabolicContainer id: parabolicContainer
property real parabolicOffset: root.myView.alignment === LatteCore.Types.Center ? (tailOffsetLength - headOffsetLength) / 2 : 0 property real parabolicOffset: root.myView.alignment === LatteCore.Types.Center ? Math.floor((tailOffsetLength - headOffsetLength) / 2) : 0
property real tailOffsetLength: 0 property real tailOffsetLength: 0
property real headOffsetLength: 0 property real headOffsetLength: 0
@ -61,9 +61,9 @@ AppletsContainer {
} }
if (istail) { if (istail) {
tailOffsetLength = nextLength + 1; //1px. added because it was missing from calculations for some reason tailOffsetLength = nextLength;
} else { } else {
headOffsetLength = nextLength + 1; //1px. added because it was missing from calculations for some reason headOffsetLength = nextLength;
} }
} }

Loading…
Cancel
Save