1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-25 19:21:41 +03:00

improve Layouter for Fill(s) in MainLayout

This commit is contained in:
Michail Vourlakos 2020-05-14 02:40:35 +03:00
parent 4fa11ab3d8
commit 1b19de8952

View File

@ -361,10 +361,20 @@ Item {
}
if (startLayout.fillApplets > 0) {
if (mainLayout.fillApplets > 0) {
//! adjust final fill applet size in mainlayouts final length
sizePerAppletStart = ((maxLength/2) - (mainLayout.grid.length/2) - startLayout.sizeWithNoFillApplets) / noStart;
}
computeStep2ForLayout(startLayout.grid, sizePerAppletStart, noStart);
}
if (endLayout.fillApplets > 0) {
if (mainLayout.fillApplets > 0) {
//! adjust final fill applet size in mainlayouts final length
sizePerAppletEnd = ((maxLength/2) - (mainLayout.grid.length/2) - endLayout.sizeWithNoFillApplets) / noEnd;
}
computeStep2ForLayout(endLayout.grid, sizePerAppletEnd, noEnd);
}
}