mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
fix: register layout child for nested custom components (#7230)
This commit is contained in:

committed by
Manol Donev

parent
4d6733d86e
commit
3604df8163
@ -131,12 +131,12 @@ export class ProxyViewContainer extends LayoutBase implements ProxyViewContainer
|
||||
const oldLayout = <LayoutBase>oldParent;
|
||||
|
||||
if (addingToParent && newLayout instanceof LayoutBase) {
|
||||
this.eachChildView((child) => {
|
||||
this.eachLayoutChild((child) => {
|
||||
newLayout._registerLayoutChild(child);
|
||||
return true;
|
||||
});
|
||||
} else if (oldLayout instanceof LayoutBase) {
|
||||
this.eachChildView((child) => {
|
||||
this.eachLayoutChild((child) => {
|
||||
oldLayout._unregisterLayoutChild(child);
|
||||
return true;
|
||||
});
|
||||
|
Reference in New Issue
Block a user