mirror of
https://github.com/videojs/video.js.git
synced 2025-02-08 12:05:47 +02:00
Fixed incorrect width and height returning. fixes 258
This commit is contained in:
parent
60a70f94b2
commit
6bb2a8cdda
@ -561,7 +561,7 @@ _V_.Player = _V_.Component.extend({
|
||||
if (num !== undefined) {
|
||||
|
||||
// Cache on object to be returned. Shouldn't have any effect after CSS.
|
||||
this.el[widthOrHeight] = num;
|
||||
this.values[widthOrHeight] = num;
|
||||
|
||||
// Check if using percent width/height and adjust
|
||||
if ((""+num).indexOf("%") !== -1) {
|
||||
@ -577,7 +577,7 @@ _V_.Player = _V_.Component.extend({
|
||||
|
||||
// Returns cached width/height in attribute.
|
||||
// Could make this return computed width and support %s. Not a small amount of work.
|
||||
return parseInt(this.el.getAttribute(widthOrHeight));
|
||||
return this.values[widthOrHeight];
|
||||
},
|
||||
|
||||
// Check if current tech can support native fullscreen (e.g. with built in controls lik iOS, so not our flash swf)
|
||||
|
Loading…
x
Reference in New Issue
Block a user