From 83509db55ffd123c2200c0bef311f7911de79670 Mon Sep 17 00:00:00 2001 From: Manuel Mtz-Almeida Date: Thu, 20 Apr 2017 17:46:17 +0200 Subject: [PATCH] fix(platform): resize events are dispatched inside zone --- src/platform/platform.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/platform.ts b/src/platform/platform.ts index 77d78b346c3..dbde094e3f5 100644 --- a/src/platform/platform.ts +++ b/src/platform/platform.ts @@ -807,9 +807,9 @@ export class Platform { if (this.hasFocusedTextInput() === false) { this._isPortrait = null; } - this.resize.emit(); + this.zone.run(() => this.resize.emit()); }, 200); - }, { passive: true, zone: true }); + }, { passive: true, zone: false }); }, 2000); }