diff options
| author | jhilden <jakobhilden@gmail.com> | 2009-06-29 16:03:45 -0400 | 
|---|---|---|
| committer | jhilden <jakobhilden@gmail.com> | 2009-06-29 16:03:45 -0400 | 
| commit | b31b3bd5bff4f8d5b5721e0fdd86579028a5b03a (patch) | |
| tree | 9baa2a301c1e26dcf872e0bbfbb09be34cb020d5 /lib/gallery.show_full_size.js | |
| parent | eb82f6a64a6b4e0b4e18ca92689bd467cba6e1bd (diff) | |
| parent | 5de6de6a133c6c906ee63b5a2ab1b08bc14ca17e (diff) | |
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'lib/gallery.show_full_size.js')
| -rw-r--r-- | lib/gallery.show_full_size.js | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/lib/gallery.show_full_size.js b/lib/gallery.show_full_size.js index b2895c23..8b271db9 100644 --- a/lib/gallery.show_full_size.js +++ b/lib/gallery.show_full_size.js @@ -26,10 +26,10 @@ var show_full_size = function(image_url, image_width, image_height) {      // handle the case where the calculation is almost zero (2.14e-14)      return { -      top: ((windowHeight - imageHeight) / 2).toFixed(2), -      left: ((windowWidth - imageWidth) / 2).toFixed(2), -      width: imageWidth.toFixed(2), -      height: imageHeight.toFixed(2) +      top: Number((windowHeight - imageHeight) / 2), +      left: Number((windowWidth - imageWidth) / 2), +      width: Number(imageWidth), +      height: Number(imageHeight)      };    } | 
