This module includes the iframe resizer module. Add a class of js-iframe-resize
to your iframe to automatically resize iframes based on their content.
You will need to include the content window script on the page with the content.
Use
IFRAMERESIZER({options}, iframe);
N.B. This uses the native script, so iframe
must be a DOM node. If it's a jQuery object, use .get(0)
to get the DOM node.
Read the documentation for all the options.
Example
Options
- iframe - (DOM node) the iframe to resize.