fix resizing images in image viewer

This commit is contained in:
Robin Appelman 2011-07-21 23:30:00 +02:00
parent 38f1cffab3
commit 101c6d151e
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}
}