mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Merge pull request #1215 from NativeScript/feature/add-view-at-index-fix
FIX: Platform specific _addViewCore, ignoring index parameter
This commit is contained in:
@ -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) {
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user