Skip to content

Commit 8129f03

Browse files
klee-franklygkatsev
authored andcommitted
fix: allow player dimension method to accept 'auto' (#6185)
1 parent 6636d78 commit 8129f03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/player.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ class Player extends Component {
816816
return this[privDimension] || 0;
817817
}
818818

819-
if (value === '') {
819+
if (value === '' || value === 'auto') {
820820
// If an empty string is given, reset the dimension to be automatic
821821
this[privDimension] = undefined;
822822
this.updateStyleEl_();

0 commit comments

Comments
 (0)