From c2de8f7ba02bcbd4d67582245726bad3308c47e1 Mon Sep 17 00:00:00 2001 From: vakrilov Date: Mon, 7 Dec 2015 18:00:16 +0200 Subject: [PATCH] FIX: Platform specific _addViewCore, ignoring index parameter --- ui/core/view.android.ts | 4 ++-- ui/core/view.ios.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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(); }