jquery-iframe-auto-height icon indicating copy to clipboard operation
jquery-iframe-auto-height copied to clipboard

Load event issue on Webkit/Opera

Open DrySs opened this issue 9 years ago • 1 comments

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!

DrySs avatar Jul 02 '15 09:07 DrySs

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

house9 avatar Jul 02 '15 14:07 house9