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:
parent
6636d78d23
commit
8129f03f18
@ -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_();
|
||||
|
Loading…
Reference in New Issue
Block a user