Skip to content

Commit

Permalink
fix(): correct order of events
Browse files Browse the repository at this point in the history
  • Loading branch information
mhartington committed Oct 23, 2017
1 parent f2946e7 commit 4ea8434
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/navigation/view-controller.ts
Expand Up @@ -117,7 +117,7 @@ export class ViewController {
}

handleOrientationChange() {
if (this.getNav().isActive(this)) {
if (this.getContent()) {
this.getContent().resize();
}
}
Expand Down Expand Up @@ -455,6 +455,8 @@ export class ViewController {
* The view is about to enter and become the active view.
*/
_willEnter() {
this.handleOrientationChange();

This comment has been minimized.


assert(this._state === STATE_ATTACHED, 'view state must be ATTACHED');

if (this._detached && this._cmp) {
Expand Down

0 comments on commit 4ea8434

Please sign in to comment.