mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fixed: jumping action bar reported in #2941
This commit is contained in:
@@ -139,6 +139,7 @@ class UIViewControllerImpl extends UIViewController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public viewWillAppear(animated: boolean): void {
|
public viewWillAppear(animated: boolean): void {
|
||||||
|
super.viewWillAppear(animated);
|
||||||
let page = this._owner.get();
|
let page = this._owner.get();
|
||||||
if (trace.enabled) {
|
if (trace.enabled) {
|
||||||
if (trace.enabled) {
|
if (trace.enabled) {
|
||||||
@@ -158,6 +159,8 @@ class UIViewControllerImpl extends UIViewController {
|
|||||||
page.onNavigatingTo(newEntry.entry.context, isBack, newEntry.entry.bindingContext);
|
page.onNavigatingTo(newEntry.entry.context, isBack, newEntry.entry.bindingContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
page._enableLoadedEvents = true;
|
||||||
|
|
||||||
if (frame) {
|
if (frame) {
|
||||||
if (!page.parent) {
|
if (!page.parent) {
|
||||||
if (!frame._currentEntry) {
|
if (!frame._currentEntry) {
|
||||||
@@ -178,7 +181,6 @@ class UIViewControllerImpl extends UIViewController {
|
|||||||
//https://github.com/NativeScript/NativeScript/issues/1201
|
//https://github.com/NativeScript/NativeScript/issues/1201
|
||||||
page._viewWillDisappear = false;
|
page._viewWillDisappear = false;
|
||||||
|
|
||||||
page._enableLoadedEvents = true;
|
|
||||||
// Pages in backstack are unloaded so raise loaded here.
|
// Pages in backstack are unloaded so raise loaded here.
|
||||||
if (!page.isLoaded) {
|
if (!page.isLoaded) {
|
||||||
page.onLoaded();
|
page.onLoaded();
|
||||||
@@ -188,6 +190,7 @@ class UIViewControllerImpl extends UIViewController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public viewDidAppear(animated: boolean): void {
|
public viewDidAppear(animated: boolean): void {
|
||||||
|
super.viewDidAppear(animated);
|
||||||
let page = this._owner.get();
|
let page = this._owner.get();
|
||||||
if (trace.enabled) {
|
if (trace.enabled) {
|
||||||
trace.write(page + " viewDidAppear", trace.categories.Navigation);
|
trace.write(page + " viewDidAppear", trace.categories.Navigation);
|
||||||
|
|||||||
Reference in New Issue
Block a user