From 4ea843440bc479f00529c4695930ce69af346ef0 Mon Sep 17 00:00:00 2001 From: mhartington Date: Sun, 22 Oct 2017 19:41:25 -0700 Subject: [PATCH] fix(): correct order of events --- src/navigation/view-controller.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/navigation/view-controller.ts b/src/navigation/view-controller.ts index 86e471aed81..bb98ae540fb 100644 --- a/src/navigation/view-controller.ts +++ b/src/navigation/view-controller.ts @@ -117,7 +117,7 @@ export class ViewController { } handleOrientationChange() { - if (this.getNav().isActive(this)) { + if (this.getContent()) { this.getContent().resize(); } } @@ -455,6 +455,8 @@ export class ViewController { * The view is about to enter and become the active view. */ _willEnter() { + this.handleOrientationChange(); + assert(this._state === STATE_ATTACHED, 'view state must be ATTACHED'); if (this._detached && this._cmp) {