house9 / jquery-iframe-auto-height

jQuery plugin to set the height of an iframe to its contents height
https://github.com/house9/jquery-iframe-auto-height
453 stars 211 forks source link

Fix bug that cannot work under Firefox 11.0 #31

Closed blueabysm closed 12 years ago

blueabysm commented 12 years ago

Hi house9,

Thanks for your jquery plugin, it helps me a lot :)

The issue is, this plugin does not work in my Firefox 11.0. My iframe could only be resized to the minHeight which I have set at initializing. I found that the body height of the inner document will be "0" if its overflow is not "scroll" in firefox 11.0 (I didn't test other versions). Now I have fixed this issue, and it works for me.

Hope it is useful :)