blueimp / Gallery

blueimp Gallery is a touch-enabled, responsive and customizable image & video gallery, carousel and lightbox, optimized for both mobile and desktop web browsers. It features swipe, mouse and keyboard navigation, transition effects, slideshow functionality, fullscreen support and on-demand content loading.
https://blueimp.github.io/Gallery/
Other
3.75k stars 984 forks source link

Image deformation in IE9 #62

Closed black-eye closed 10 years ago

black-eye commented 10 years ago

Hello, great plugin, but I'm facing a strange behavior in IE8 and IE9 (IE10, not tested).

If the image is larger than the screen resolution, IE deforms it in a strange way. Landscape images seem to be deformed to fit the full width, portrait images are not stretched to full width, but are wider too. Weird thing is, that it won't happen when launched for the first time. You have to close the lightbox and reopen it again. Moreover, after several opens and closes it sometimes starts to work well again.

For the test page I used the instructions from the documentation, here is the page: http://test.blackeye.cz/ . What also confuses me is, that the lightbox gallery on your testpage (http://blueimp.github.io/Gallery/) don't have this issue.

I'm really puzzled, have you got any ideas? What am I doing wrong?

Thanks in advance Petr

blueimp commented 10 years ago

The new version explicitly sets width and height to "auto", which fixed the distortion issues in IE in my tests.