Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-07-22 01:30:00 +0400
committerRobin Appelman <icewind1991@gmail.com>2011-07-22 01:30:00 +0400
commit101c6d151ea1cccedf3b6dfbae167c77b3fa4c88 (patch)
tree661929de256e7737f565a82c30825b81f13c53cc /apps/files_imageviewer
parent38f1cffab39ae763f3929bcc37e6f8746f582083 (diff)
fix resizing images in image viewer
Diffstat (limited to 'apps/files_imageviewer')
-rw-r--r--apps/files_imageviewer/js/lightbox.js4
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
+}