diff options
Diffstat (limited to 'apps/files_imageviewer/js/lightbox.js')
-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 +} |