1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-10 23:30:03 +02:00

fix: allow player dimension method to accept 'auto' (#6185)

This commit is contained in:
Kevin Lee 2019-08-29 16:42:22 -04:00 committed by Gary Katsevman
parent 6636d78d23
commit 8129f03f18

View File

@ -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_();