Skip to content

Commit 4ea8434

Browse files
committed
fix(): correct order of events
1 parent f2946e7 commit 4ea8434

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/navigation/view-controller.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export class ViewController {
117117
}
118118

119119
handleOrientationChange() {
120-
if (this.getNav().isActive(this)) {
120+
if (this.getContent()) {
121121
this.getContent().resize();
122122
}
123123
}
@@ -455,6 +455,8 @@ export class ViewController {
455455
* The view is about to enter and become the active view.
456456
*/
457457
_willEnter() {
458+
this.handleOrientationChange();
459+
458460
assert(this._state === STATE_ATTACHED, 'view state must be ATTACHED');
459461

460462
if (this._detached && this._cmp) {

0 commit comments

Comments
 (0)