diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-07-21 23:30:00 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-07-21 23:30:00 +0200 |
commit | 101c6d151ea1cccedf3b6dfbae167c77b3fa4c88 (patch) | |
tree | 661929de256e7737f565a82c30825b81f13c53cc /apps/files_imageviewer | |
parent | 38f1cffab39ae763f3929bcc37e6f8746f582083 (diff) | |
download | nextcloud-server-101c6d151ea1cccedf3b6dfbae167c77b3fa4c88.tar.gz nextcloud-server-101c6d151ea1cccedf3b6dfbae167c77b3fa4c88.zip |
fix resizing images in image viewer
Diffstat (limited to 'apps/files_imageviewer')
-rw-r--r-- | apps/files_imageviewer/js/lightbox.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_imageviewer/js/lightbox.js b/apps/files_imageviewer/js/lightbox.js index 25da2bc6835..6e45547ebb4 100644 --- a/apps/files_imageviewer/js/lightbox.js +++ b/apps/files_imageviewer/js/lightbox.js @@ -36,7 +36,7 @@ function showLightbox(container,img){ img.width = maxHeight * ratio; } else { img.width = maxWidth; - img.height = maxWidth * ratio; + img.height = maxWidth / ratio; } } container.empty(); @@ -55,4 +55,4 @@ function hideLightbox(){ $('#lightbox').hide(); lightBoxShown=false; } -}
\ No newline at end of file +} |