mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +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) {
|
if (this._context) {
|
||||||
view._onAttached(this._context);
|
view._onAttached(this._context);
|
||||||
}
|
}
|
||||||
|
|
||||||
super._addViewCore(view);
|
super._addViewCore(view, atIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
public _removeViewCore(view: viewCommon.View) {
|
public _removeViewCore(view: viewCommon.View) {
|
||||||
|
@ -72,8 +72,8 @@ export class View extends viewCommon.View {
|
|||||||
this._privateFlags = PFLAG_LAYOUT_REQUIRED | PFLAG_FORCE_LAYOUT;
|
this._privateFlags = PFLAG_LAYOUT_REQUIRED | PFLAG_FORCE_LAYOUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
public _addViewCore(view: viewCommon.View) {
|
public _addViewCore(view: viewCommon.View, atIndex?: number) {
|
||||||
super._addViewCore(view);
|
super._addViewCore(view, atIndex);
|
||||||
this.requestLayout();
|
this.requestLayout();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user