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

fix binding loop

This commit is contained in:
Michail Vourlakos 2021-01-02 21:41:49 +02:00
parent 77520f7407
commit 507d673af4
2 changed files with 9 additions and 3 deletions

View File

@ -107,7 +107,7 @@ Item {
value: {
var no = 0;
for (var i=0; i<grid.children.length; ++i){
if (grid.children[i] && grid.children[i].isAutoFillApplet && grid.children[i].applet && !grid.children[i].isHidden) {
if (grid.children[i] && grid.children[i].isRequestingFill && grid.children[i].applet && !grid.children[i].isHidden) {
//console.log("fill :::: " + children[i].applet.pluginName);
no++;
}

View File

@ -64,16 +64,22 @@ Item {
return isFillSplitter;
}
return isRequestingFill;
}
property bool isRequestingFill: {
if (!applet || !applet.Layout)
return false;
if (((root.isHorizontal && applet.Layout.fillWidth===true)
|| (root.isVertical && applet.Layout.fillHeight===true))
&& (applet.status !== PlasmaCore.Types.HiddenStatus))
&& (!isHidden)) {
return true;
else
} else {
return false;
}
}
property int maxAutoFillLength: -1 //it is used in calculations for fillWidth,fillHeight applets
property int minAutoFillLength: -1 //it is used in calculations for fillWidth,fillHeight applets