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:
parent
77520f7407
commit
507d673af4
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user