improve Layouter for Fill(s) in MainLayout

pull/15/head
Michail Vourlakos 5 years ago
parent 4fa11ab3d8
commit 1b19de8952

@ -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);
}
}

Loading…
Cancel
Save