Skip to content

Commit

Permalink
fix: allow player dimension method to accept 'auto' (#6185)
Browse files Browse the repository at this point in the history
  • Loading branch information
klee-frankly authored and gkatsev committed Aug 29, 2019
1 parent 6636d78 commit 8129f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ class Player extends Component {
return this[privDimension] || 0;
}

if (value === '') {
if (value === '' || value === 'auto') {
// If an empty string is given, reset the dimension to be automatic
this[privDimension] = undefined;
this.updateStyleEl_();
Expand Down

0 comments on commit 8129f03

Please sign in to comment.