fix(ios): actionbar show/hide should trigger page layout (#8726)

This commit is contained in:
Nathan Walker
2020-07-21 13:59:03 -07:00
committed by GitHub
parent ff62eb8b73
commit 09d866cfcd

View File

@@ -217,6 +217,8 @@ export class Frame extends FrameBase {
this._ios._disableNavBarAnimation = true;
}
// when showing/hiding navigationbar, the page needs a relayout to avoid overlapping or hidden layouts
const needsPageLayout = this._ios.showNavigationBar !== newValue;
this._ios.showNavigationBar = newValue;
if (disableNavBarAnimation) {
@@ -226,6 +228,10 @@ export class Frame extends FrameBase {
if (this._ios.controller.navigationBar) {
this._ios.controller.navigationBar.userInteractionEnabled = this.navigationQueueIsEmpty();
}
if (needsPageLayout && page) {
page.requestLayout();
}
}
public _getNavBarVisible(page: Page): boolean {