humaan / Modaal

An accessible dialog window library for all humans.
http://humaan.com/modaal/
MIT License
2.72k stars 183 forks source link

width:100% inline style distorts image in short viewports #61

Closed jsit closed 8 years ago

jsit commented 8 years ago

Open a Modaal slideshow, then shrink the vertical size of the browser so that it's shorter than the height of the image.

The image will be "squished" vertically.

https://github.com/humaan/Modaal/blob/acce911a983e3f9d23efb59e5669cd76eb4985b7/source/js/modaal.js#L603

https://github.com/humaan/Modaal/commit/acce911a983e3f9d23efb59e5669cd76eb4985b7

jsit commented 8 years ago

My mistake, this was due to some styles I had added.