fixed BUG-96 (no longer wrapped name of file for image viewer)

This commit is contained in:
2022-07-17 16:45:11 +10:00
parent 3193b86f9f
commit f62eaef1cd
2 changed files with 5 additions and 3 deletions

View File

@@ -63,6 +63,9 @@ function DrawImg()
canvas.width=NewWidth(im)
canvas.height=NewHeight(im)
// dont let caption be wider than image
$('#img-cap').width(canvas.width)
// actually draw the pixel images to the canvas at the right size
if( grayscale )
context.filter='grayscale(1)'
@@ -77,7 +80,6 @@ function DrawImg()
if( $('#fname_toggle').prop('checked' ) )
{
// reset fname for new image (if navigated left/right to get here)
$('#fname').html(PrettyFname(objs[current].url))
$('.figcaption').show()
}
else