From 2c11117c3a0cc5293d75f7c5cfa76595b8b7ffaa Mon Sep 17 00:00:00 2001 From: ScottDowne Date: Wed, 2 Mar 2011 12:34:54 -0500 Subject: [PATCH] [#378] subtitle position fix --- plugins/subtitle/popcorn.subtitle.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/plugins/subtitle/popcorn.subtitle.js b/plugins/subtitle/popcorn.subtitle.js index 27ad26b..601b261 100644 --- a/plugins/subtitle/popcorn.subtitle.js +++ b/plugins/subtitle/popcorn.subtitle.js @@ -34,17 +34,6 @@ } ); }; - -/* - // 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 -- 2.43.0