From 6bb2a8cdda3fe878e0176e48ee47387f379097d9 Mon Sep 17 00:00:00 2001 From: Steve Heffernan Date: Tue, 11 Dec 2012 13:31:21 -0800 Subject: [PATCH] Fixed incorrect width and height returning. fixes 258 --- src/player.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/player.js b/src/player.js index 1f5532dbe..d9ff2c412 100644 --- a/src/player.js +++ b/src/player.js @@ -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)