]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#378] subtitle position fix
authorScottDowne <sdowne@learn.senecac.on.ca>
Wed, 2 Mar 2011 17:34:54 +0000 (12:34 -0500)
committerScottDowne <sdowne@learn.senecac.on.ca>
Wed, 2 Mar 2011 17:34:54 +0000 (12:34 -0500)
plugins/subtitle/popcorn.subtitle.js

index 27ad26b188a4cd1009674cb4bc6bc995b7d623e3..601b26147065ac1788d5cf91d091b773beaf3f72 100644 (file)
     } );
   };
 
-
-/*
-      // Find element offset
-      if (element.offsetParent) {
-        do {
-          offsetX += element.offsetLeft;
-          offsetY += element.offsetTop;
-        } while ((element = element.offsetParent));
-      }
-*/
-
   Popcorn.plugin( "subtitle" , {
     
       manifest: {
@@ -80,7 +69,7 @@
           this.container.style.top        = offset( this.video ).top + this.video.offsetHeight - 65 + "px";
           this.container.style.left       = offset( this.video ).left + "px";
 
-          this.video.parentNode.appendChild( this.container );
+          document.body.appendChild( this.container );
         }
 
         // if a target is specified, use that