From 0a800555b9daf0f1e43737eeaecec9584e3a389f Mon Sep 17 00:00:00 2001 From: rwldrn Date: Thu, 24 Mar 2011 17:38:18 -0400 Subject: [PATCH] [#450] subtitles this.video=>this.media --- plugins/subtitle/popcorn.subtitle.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ); } -- 2.43.0