davidjbradshaw / iframe-resizer

Keep iFrames sized to their content.

Home Page:https://iframe-resizer.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trigger iframe-resizer to resize

alexanderbuergin opened this issue · comments

We have a page where the content is changed dynamically on the server side, but the iframe-resizer does not adjust the height of the iframe.

How can the iframe-resizer be triggered again, in the reloaded content?

When someone resize the window, the script is executed and the height fits again.

You can manual trigger a resize, by calling the resize method which is both the parent and child pages APIs.