Skip to content

Commit 6b848a0

Browse files
committed
fix(content): reize on orientationchange only
Ref ionic-team#13028
1 parent af36358 commit 6b848a0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/content/content.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ export class Content extends Ion implements OnDestroy, AfterViewInit, IContent {
670670
* Tell the content to recalculate its dimensions. This should be called
671671
* after dynamically adding/removing headers, footers, or tabs.
672672
*/
673-
@HostListener('window:resize')
673+
@HostListener('window:orientationchange')
674674
resize() {
675675
this._dom.read(this._readDimensions.bind(this));
676676
this._dom.write(this._writeDimensions.bind(this));

0 commit comments

Comments
 (0)