Skip to content

Commit

Permalink
fix(FEC-8903): when loading a player with display: none, the player s…
Browse files Browse the repository at this point in the history
…ize class is set to small (#350)

* add window resize listener to 'playing' event

* change to FIRST_PLAY event
  • Loading branch information
odedhutzler committed Feb 20, 2019
1 parent 3726d7d commit 20c5c43
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/shell/shell.js
Expand Up @@ -199,6 +199,7 @@ class Shell extends BaseComponent {
this.props.updateIsMobile(!!this.player.env.device.type || this.props.forceTouchUI);
this._onWindowResize();
this.eventManager.listen(window, 'resize', () => this._onWindowResize());
this.eventManager.listen(this.player, this.player.Event.FIRST_PLAY, () => this._onWindowResize());
}

/**
Expand Down

0 comments on commit 20c5c43

Please sign in to comment.