Merge pull request #3535 from NativeScript/fix-disappearing-nav-bar

FIX: disappearing navigation bar on back
This commit is contained in:
Alexander Vakrilov
2017-01-27 16:28:08 +02:00
committed by GitHub

View File

@@ -573,7 +573,7 @@ export class Page extends PageBase {
}
public _addViewToNativeVisualTree(view: View): boolean {
// ActionBar is added to the native visual tree by default
// ActionBar is handled by the UINavigationController
if (view === this.actionBar) {
return true;
}
@@ -581,6 +581,15 @@ export class Page extends PageBase {
return super._addViewToNativeVisualTree(view);
}
public _removeViewFromNativeVisualTree(view: View): void {
// ActionBar is handled by the UINavigationController
if (view === this.actionBar) {
return;
}
super._removeViewFromNativeVisualTree(view);
}
get [actionBarHiddenProperty.native](): boolean {
return undefined;
}