Commit 507d673a authored by Michail Vourlakos's avatar Michail Vourlakos
Browse files

fix binding loop

parent 77520f74
......@@ -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++;
}
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment