1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-23 14:50:35 +03:00

remove no needed calculations

This commit is contained in:
Michail Vourlakos 2022-01-29 11:41:03 +02:00
parent 2cbb3bc4b6
commit 8c0496a3ee

View File

@ -9,7 +9,7 @@ import org.kde.latte.core 0.2 as LatteCore
AppletsContainer {
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 headOffsetLength: 0
@ -61,9 +61,9 @@ AppletsContainer {
}
if (istail) {
tailOffsetLength = nextLength + 1; //1px. added because it was missing from calculations for some reason
tailOffsetLength = nextLength;
} else {
headOffsetLength = nextLength + 1; //1px. added because it was missing from calculations for some reason
headOffsetLength = nextLength;
}
}