From 101c6d151ea1cccedf3b6dfbae167c77b3fa4c88 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 21 Jul 2011 23:30:00 +0200 Subject: [PATCH] fix resizing images in image viewer --- apps/files_imageviewer/js/lightbox.js | 4 ++-- 1 file 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 +} -- 2.39.5