mirror of
https://github.com/KDE/latte-dock.git
synced 2024-12-26 23:21:37 +03:00
improve Layouter for Fill(s) in MainLayout
This commit is contained in:
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…
Reference in New Issue
Block a user