Skip to content

Commit

Permalink
Resolved Issue #1127: Changing ActionBar title after page is loaded d…
Browse files Browse the repository at this point in the history
…oes not show the ActionBar
  • Loading branch information
hamorphis committed Dec 14, 2015
1 parent 594e4df commit b47a648
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions ui/action-bar/action-bar.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ export class ActionBar extends common.ActionBar {
return;
}

if (this.page.frame) {
this.page.frame._updateActionBar();
}

var navigationItem: UINavigationItem = (<UIViewController>this.page.ios).navigationItem;
navigationItem.title = this.title;
}
Expand Down
6 changes: 3 additions & 3 deletions ui/frame/frame.ios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,9 @@ class iOSFrame implements definition.iOSFrame {
this._showNavigationBar = value;
this._controller.navigationBarHidden = !value;

let owner = this._controller.owner;
if (owner && change) {
owner.requestLayout();
let currentPage = this._controller.owner.currentPage;
if (currentPage && change) {
currentPage.requestLayout();
}
}

Expand Down

0 comments on commit b47a648

Please sign in to comment.