mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +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 {
|
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;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user