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 {
|
||||
super.viewWillAppear(animated);
|
||||
let page = this._owner.get();
|
||||
if (trace.enabled) {
|
||||
if (trace.enabled) {
|
||||
@@ -158,6 +159,8 @@ class UIViewControllerImpl extends UIViewController {
|
||||
page.onNavigatingTo(newEntry.entry.context, isBack, newEntry.entry.bindingContext);
|
||||
}
|
||||
|
||||
page._enableLoadedEvents = true;
|
||||
|
||||
if (frame) {
|
||||
if (!page.parent) {
|
||||
if (!frame._currentEntry) {
|
||||
@@ -178,7 +181,6 @@ class UIViewControllerImpl extends UIViewController {
|
||||
//https://github.com/NativeScript/NativeScript/issues/1201
|
||||
page._viewWillDisappear = false;
|
||||
|
||||
page._enableLoadedEvents = true;
|
||||
// Pages in backstack are unloaded so raise loaded here.
|
||||
if (!page.isLoaded) {
|
||||
page.onLoaded();
|
||||
@@ -188,6 +190,7 @@ class UIViewControllerImpl extends UIViewController {
|
||||
}
|
||||
|
||||
public viewDidAppear(animated: boolean): void {
|
||||
super.viewDidAppear(animated);
|
||||
let page = this._owner.get();
|
||||
if (trace.enabled) {
|
||||
trace.write(page + " viewDidAppear", trace.categories.Navigation);
|
||||
|
||||
Reference in New Issue
Block a user