iframe-resizer

iFrameResizer plugin not resizing iframe


I have implemented the iFrameResizer plugin here with the following settings:

$('#iframeResizer').iFrameResize({
                    log                     : true,
                    scrolling               : true,
                    enablePublicMethods     : true,            // Enable methods within iFrame hosted page
                    heightCalculationMethod : 'lowestElement'
                    });

and the iframeSizer.contentWindow.min.js has been added to the iframe content window - I can see that the scroll bars are working which tells me the iFrame Resizer plugin has been implemented correctly - but the height is not resizing correctly??

Here are the console results enter image description here

I thought perhaps maybe the problem could be from the iFrame content being hosted on a secure server????

If anybody is able to offer some advice or suggestions I'd really appreciate it.


Solution

  • You need to set the checkOrigin option.

    https://github.com/davidjbradshaw/iframe-resizer/blob/master/docs/parent_page/options.md#checkorigin