mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix: ActionBar update in IOS with modal dialogs
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user