lokesh / lightbox2

THE original Lightbox script (v2).
http://lokeshdhakar.com/projects/lightbox2/
MIT License
6.19k stars 1.76k forks source link

Firefox dislays images scaled, instead of full images #569

Open calarndt opened 7 years ago

calarndt commented 7 years ago

Using Firefox 50.1.0 From firefox "View image info" 1,456px × 1,488px (scaled to 132px × 135px) works perfect in chrome... Ok so what appears to be happening is that Firefox/lightbox is rendering the images at the specs of the height and width attribtes of the tag from the webpage. Whereas in the chrome/lightbox the clickable image on the webpage is scaled but the image as shown in a lightbox is full size. The Chrome way of doing things is the action I'd prefer from firefox. This is the html code:

`

some_text

`

kess42 commented 7 years ago

Well, whereas Chrome and InternetExplorer seem to scale the image such that it is shown in full size, Firefox scales it to full width only and for the hight you have to scroll. Actually for me the Firefox scaling is exactly what I would like to see in all browsers, because I frequently have high pictures (like newspaper articles that can be read scrolling down quite easily, but have tiny letters in full image mode). So I guess, this is a feature request for an option "fitImagesWidthInViewport" = "true". Does this make sense?

lokesh commented 6 years ago

Possible related: https://github.com/lokesh/lightbox2/issues/514