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

fix more centered Justify calculations

This commit is contained in:
Michail Vourlakos 2021-03-09 21:11:44 +02:00
parent 4132982486
commit bf016527b2

View File

@ -369,7 +369,8 @@ Item {
if (freeSpaceAfterStart > 0 && freeSpaceBeforeEnd>0) {
if (mainLayout.fillApplets > 0) {
sizePerAppletMain = Math.max(0, (max_length - mainLayout.sizeWithNoFillApplets - startLayout.grid.length - endLayout.grid.length) /mainLayout.fillApplets);
var minimumHalfAppletSizePossible = Math.min(freeSpaceAfterStart, freeSpaceBeforeEnd);
sizePerAppletMain = Math.max(0, (minimumHalfAppletSizePossible * 2)/mainLayout.fillApplets);
}
computeStep2ForLayout(mainLayout.grid, sizePerAppletMain, noMain, inMaxAutoFillCalculations); //default behavior