Skip iterating children that are not visible

This commit is contained in:
vakrilov
2016-11-29 14:50:34 +02:00
parent 7c39e58dff
commit 258b36b1e4

View File

@ -51,7 +51,9 @@ export class ProxyViewContainer extends LayoutBase implements definition.ProxyVi
public _eachLayoutView(callback: (View) => void): void {
this._eachChildView((cv) => {
if (cv._isVisible) {
cv._eachLayoutView(callback);
}
return true;
});
}