iFrame Resizer

Component ID

2610780

Component name

iFrame Resizer

Component type

module

Maintenance status

Development status

Component security advisory coverage

covered

Downloads

4105

Component created

Component changed

Component body

Synopsis

This module makes the iFrame Resizer javascript library available on your Drupal site. With it enabled, you can "keep same and cross domain iFrames sized to their content with support for window/content resizing, in page links, nesting and multiple iFrames."

In other words, if you're sick of seeing scrollbars on content iFramed into your site, this module will help you by dynamically resizing iFrames so that no scrollbars are present.

Requirements

To use the module, you must first download the JavaScript library from the project's github page. Unpack and rename the resulting directory "iframe-resizer" and place it in your Drupal installation's "sites/all/libraries" directory (or the appropriate multisite or profiles directory). Make sure the path to the library's main file becomes: "sites/all/libraries/iframe-resizer/js/iframeResizer.min.js".

Once the library is in place, you can configure the module at admin/config/user-interface/iframe_resizer. Be sure to assign the 'administer iframe resizer' permission to any role that should be able to configure the module.

If your site is iFraming in another site, the child site (i.e. the site listed
in your iFrame tag's 'src' attribute) must include the
js/iframeResizer.contentWindow.js or js/iframeResizer.contentWindow.min.js file
from the iFrame Resizer library.

If your site is being iFramed into another site (i.e. your site is in the
'src' attribute of the iFrame HTML tag), the parent site must include
the js/iframeResizer.js or js/iframeResizer.min.js file from the iFrame
Resizer library.