1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-03-20 06:50:28 +03:00

correct center calculation based on hidden spacers

This commit is contained in:
Michail Vourlakos 2017-05-24 12:56:02 +03:00
parent ca65e2c4f0
commit 0c69277912

View File

@ -134,7 +134,7 @@ Item{
property int moreWidth: ((applet && (applet.pluginName === "org.kde.plasma.systemtray")) || root.reverseLinesPosition)
&& root.isVertical ? localMoreSpace : 0
property real center: width / 2
property real center:(width + hiddenSpacerLeft.separatorSpace + hiddenSpacerRight.separatorSpace) / 2
property real zoomScale: 1
property int index: container.index