From: David Seifried Date: Thu, 23 Jun 2011 18:39:08 +0000 (-0400) Subject: [#565] Fixed positioning error X-Git-Tag: v0.7^2~12^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=6ba3548b9feebd4990a6e749a6f5301eb2b22a7c;p=popcorn-js.git [#565] Fixed positioning error --- diff --git a/plugins/subtitle/popcorn.subtitle.js b/plugins/subtitle/popcorn.subtitle.js index a8e9177..4ed0f86 100755 --- a/plugins/subtitle/popcorn.subtitle.js +++ b/plugins/subtitle/popcorn.subtitle.js @@ -27,7 +27,7 @@ createDefaultContainer = Popcorn.nop; var updatePosition = function() { - + var position = context.position(); // the video element must have height and width defined style.fontSize = "18px"; style.width = media.offsetWidth + "px"; @@ -39,7 +39,6 @@ var ctxContainer = context.container = document.createElement( "div" ), style = ctxContainer.style, - position = context.position(), media = context.media; ctxContainer.id = "subtitlediv";