fix resizing images in image viewer
This commit is contained in:
parent
38f1cffab3
commit
101c6d151e
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue