Skip to content
Snippets Groups Projects
Commit 101c6d15 authored by Robin Appelman's avatar Robin Appelman
Browse files

fix resizing images in image viewer

parent 38f1cffa
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment