From 95f88865e2fd0d6e1f0eb93fe3d6e8602e7fb48f Mon Sep 17 00:00:00 2001 From: Nathan Kinkade Date: Fri, 14 Jan 2011 01:10:18 +0000 Subject: Small fix for a rendering issue: https://sourceforge.net/apps/trac/gallery/ticket/1490 --- lib/gallery.common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/gallery.common.js b/lib/gallery.common.js index 2dbd7c7c..884245e5 100644 --- a/lib/gallery.common.js +++ b/lib/gallery.common.js @@ -171,7 +171,7 @@ // handle the case where the calculation is almost zero (2.14e-14) return { - top: Number((height - imageHeight) / 2), + top: Math.floor(Number((height - imageHeight) / 2)), left: Number((width - imageWidth) / 2), width: Number(imageWidth), height: Number(imageHeight) -- cgit v1.2.3