GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Request layout when showing/hiding the nabar · alvsgithub/NativeScript@8fcd8a7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • ui/frame
    • frame.ios.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎ui/frame/frame.ios.ts‎

Copy file name to clipboardExpand all lines: ui/frame/frame.ios.ts
+11-3Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,20 +71,28 @@ export class Frame extends frameCommon.Frame {
7171
}
7272

7373
public updateNavigationBar(page?: pages.Page): void {
74+
var previousValue = !!this._ios.showNavigationBar;
75+
var newValue: boolean = false;
7476
switch (this._ios.navBarVisibility) {
7577
case enums.NavigationBarVisibility.always:
76-
this._ios.showNavigationBar = true;
78+
newValue = true;
7779
break;
7880

7981
case enums.NavigationBarVisibility.never:
80-
this._ios.showNavigationBar = false;
82+
newValue = false;
8183
break;
8284

8385
case enums.NavigationBarVisibility.auto:
8486
var pageInstance: pages.Page = page || this.currentPage;
85-
this._ios.showNavigationBar = this.backStack.length > 0 || (pageInstance && pageInstance.optionsMenu.getItems().length > 0);
87+
newValue = this.backStack.length > 0 || (pageInstance && pageInstance.optionsMenu.getItems().length > 0);
88+
newValue = !!newValue; // Make sure it is boolean
8689
break;
8790
}
91+
92+
this._ios.showNavigationBar = newValue;
93+
if (previousValue !== newValue) {
94+
this.requestLayout();
95+
}
8896
}
8997

9098
public get ios(): iOSFrame {

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.