Fix: ActionBar update in IOS with modal dialogs

This commit is contained in:
vakrilov
2017-05-12 16:56:48 +03:00
parent 5441e7d1fc
commit f954d64d79
10 changed files with 86 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ export class Frame extends FrameBase {
super();
this._ios = new iOSFrame(this);
this.nativeView = this._ios.controller.view;
// When there is a 40px high "in-call" status bar, nobody moves the navigationBar top from 20 to 40 and it remains underneath the status bar.
let frameRef = new WeakRef(this);
application.ios.addNotificationObserver(UIApplicationDidChangeStatusBarFrameNotification, (notification: NSNotification) => {
@@ -202,6 +202,10 @@ export class Frame extends FrameBase {
super._updateActionBar(page);
if (page && this.currentPage && this.currentPage.modal === page) {
return;
}
page = page || this.currentPage;
let newValue = this._getNavBarVisible(page);
let disableNavBarAnimationCache = this._ios._disableNavBarAnimation;