From: rwldrn Date: Thu, 24 Mar 2011 21:38:18 +0000 (-0400) Subject: [#450] subtitles this.video=>this.media X-Git-Tag: v0.5~38^2~2^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=0a800555b9daf0f1e43737eeaecec9584e3a389f;p=popcorn-js.git [#450] subtitles this.video=>this.media --- diff --git a/plugins/subtitle/popcorn.subtitle.js b/plugins/subtitle/popcorn.subtitle.js index 454f8e3..b809a09 100644 --- a/plugins/subtitle/popcorn.subtitle.js +++ b/plugins/subtitle/popcorn.subtitle.js @@ -117,9 +117,9 @@ this.container.style.textAlign = "center"; // the video element must have height and width defined - this.container.style.width = this.video.offsetWidth + "px"; - this.container.style.top = offset( this.video ).top + this.video.offsetHeight - 65 + "px"; - this.container.style.left = offset( this.video ).left + "px"; + this.container.style.width = this.media.offsetWidth + "px"; + this.container.style.top = offset( this.media ).top + this.media.offsetHeight - 65 + "px"; + this.container.style.left = offset( this.media ).left + "px"; document.body.appendChild( this.container ); }