]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#450] subtitles this.video=>this.media
authorrwldrn <waldron.rick@gmail.com>
Thu, 24 Mar 2011 21:38:18 +0000 (17:38 -0400)
committerrwldrn <waldron.rick@gmail.com>
Thu, 24 Mar 2011 21:38:18 +0000 (17:38 -0400)
plugins/subtitle/popcorn.subtitle.js

index 454f8e3ff4354212786e26c6d0f656835d872596..b809a091cf4878a606779e39389c08eadeb2c560 100644 (file)
           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 );
         }