diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-29 06:44:05 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-29 06:44:05 -0700 |
commit | 10b4eda6f0cbb44fde9fb3158bd174c82467f2ee (patch) | |
tree | 811d72521d8ad7bfb361030c4d320aa03b17ddea /lib/gallery.show_full_size.js | |
parent | 42c82ef7f081630c15a5d354205896764348a76a (diff) | |
parent | b0bb107b7ebb5edbf3bec69ae2e716552eb1adf5 (diff) |
Merge branch 'master' of git@github.com:gallery/gallery3
Conflicts:
modules/gallery/libraries/Theme_View.php
themes/admin_default/views/admin.html.php
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) }; } |