diff -r f9d51dd4a3fe -r 7b65bf78873a src/widgets/PopcornPlayer.js --- a/src/widgets/PopcornPlayer.js Wed Dec 19 19:02:52 2012 +0100 +++ b/src/widgets/PopcornPlayer.js Thu Jan 17 17:25:46 2013 +0100 @@ -7,7 +7,6 @@ /* A Popcorn-based player for HTML5 Video, Youtube and Vimeo */ IriSP.Widgets.PopcornPlayer.prototype.defaults = { - aspect_ratio: 14/9 } IriSP.Widgets.PopcornPlayer.prototype.draw = function() { @@ -21,13 +20,6 @@ this.video = this.url_transform(this.video); } - if (!this.height) { - this.height = Math.floor(this.width/this.aspect_ratio); - this.$.css({ - height: this.height - }); - } - if (/^(https?:\/\/)?(www\.)?vimeo\.com/.test(this.video)) { /* VIMEO */ @@ -62,7 +54,7 @@ _videoEl.attr({ id : _tmpId, width : this.width, - height : this.height + height : this.height || undefined }); if(typeof this.video === "string"){ _videoEl.attr("src",this.video);