diff options
author | Nathan Kinkade <nkinkade@nkinka.de> | 2011-01-14 01:10:18 +0000 |
---|---|---|
committer | Nathan Kinkade <nkinkade@nkinka.de> | 2011-01-14 01:10:18 +0000 |
commit | 95f88865e2fd0d6e1f0eb93fe3d6e8602e7fb48f (patch) | |
tree | 165191da971ec7b69afa373c64fd4144e516f2ca | |
parent | 5e17a5e7fcb678bd7081bdf8089afec5b25f3aff (diff) |
Small fix for a rendering issue: https://sourceforge.net/apps/trac/gallery/ticket/1490
-rw-r--r-- | lib/gallery.common.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) |