jquery-iframe-auto-height
jquery-iframe-auto-height copied to clipboard
Load event issue on Webkit/Opera
Hi there,
I think there is a problem with the load event mechanism used for Webkit/Opera browsers.
In some case, script never goes inside $(this).load() event (at line 225), so iframe resize does not happen. For example, it occurs when I dynamically add DOM elements with an Ajax return to iframe content. Then, when I call a resize, $(this).load() event is not thrown.
On Firefox, it's working well (as we don't use $(this).load() event).
Any idea? Thanks!
I don't have time to look into this right now, but you might be able to leverage https://github.com/house9/jquery-iframe-auto-height#heightcalculationoverrides