Skip to content

Commit

Permalink
fix(content): reize on orientationchange only
Browse files Browse the repository at this point in the history
Ref #13028
  • Loading branch information
mhartington committed Oct 19, 2017
1 parent af36358 commit 6b848a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/content/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ export class Content extends Ion implements OnDestroy, AfterViewInit, IContent {
* Tell the content to recalculate its dimensions. This should be called
* after dynamically adding/removing headers, footers, or tabs.
*/
@HostListener('window:resize')
@HostListener('window:orientationchange')
resize() {
this._dom.read(this._readDimensions.bind(this));
this._dom.write(this._writeDimensions.bind(this));
Expand Down

0 comments on commit 6b848a0

Please sign in to comment.