mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
fix resizing images in image viewer
This commit is contained in:
parent
38f1cffab3
commit
101c6d151e
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue