mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 02:54:11 +08:00
Skip iterating children that are not visible
This commit is contained in:
@ -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;
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user