diff --git a/ui/core/view.android.ts b/ui/core/view.android.ts index 9a8e91f90..6a84495b1 100644 --- a/ui/core/view.android.ts +++ b/ui/core/view.android.ts @@ -163,12 +163,12 @@ export class View extends viewCommon.View { } } - public _addViewCore(view: viewCommon.View) { + public _addViewCore(view: viewCommon.View, atIndex?: number) { if (this._context) { view._onAttached(this._context); } - super._addViewCore(view); + super._addViewCore(view, atIndex); } public _removeViewCore(view: viewCommon.View) { diff --git a/ui/core/view.ios.ts b/ui/core/view.ios.ts index 5f5dc32b4..681c5ea47 100644 --- a/ui/core/view.ios.ts +++ b/ui/core/view.ios.ts @@ -72,8 +72,8 @@ export class View extends viewCommon.View { this._privateFlags = PFLAG_LAYOUT_REQUIRED | PFLAG_FORCE_LAYOUT; } - public _addViewCore(view: viewCommon.View) { - super._addViewCore(view); + public _addViewCore(view: viewCommon.View, atIndex?: number) { + super._addViewCore(view, atIndex); this.requestLayout(); }