Merge pull request #3199 from NativeScript/proxy-container-optimization

Skip iterating children that are not visible
This commit is contained in:
Alexander Vakrilov
2016-11-29 15:56:44 +02:00
committed by GitHub

View File

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