From: ScottDowne Date: Thu, 21 Apr 2011 17:03:31 +0000 (-0400) Subject: [#475] bandaid for rounding error on chrome X-Git-Tag: v0.5~5^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=1fc08123d50302e6558f5cad9f9dcdce44bd1755;p=popcorn-js.git [#475] bandaid for rounding error on chrome --- diff --git a/players/baseplayer/popcorn.baseplayer.js b/players/baseplayer/popcorn.baseplayer.js index ba0d056..1f421d1 100644 --- a/players/baseplayer/popcorn.baseplayer.js +++ b/players/baseplayer/popcorn.baseplayer.js @@ -70,10 +70,10 @@ b = this._resource.getBoundingClientRect(); return { - bottom: b.bottom, - left: b.left, - right: b.right, - top: b.top, + bottom: Math.ceil( b.bottom ), + left: Math.ceil( b.left ), + right: Math.ceil( b.right ), + top: Math.ceil( b.top ), // These not guaranteed to be in there width: b.width || ( b.right - b.left ), @@ -164,4 +164,4 @@ } } }; -})( window, document ); \ No newline at end of file +})( window, document );