Fixed: jumping action bar reported in #2941

This commit is contained in:
Tsvetan Raikov
2016-11-09 15:16:18 +02:00
parent a7746f31a3
commit a0cd3b0f39

View File

@@ -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);