gardr-plugin-ext-resize

0.3.0 • Public • Published

Gardr Resize Plugin (Ext)

Gardr plugin to resize contents of an iframe (images, flash objects, other iframes) if they're exceeding iframe's size.

Requires options plugin bundled in host.

Install

npm install gardr-plugin-ext-resize --save

Bundle

In your ext bundle file:

    var gardrExt = require('gardr-ext');
    var resize = require('gardr-plugin-ext-resize');
 
    gardrExt.plugin(resize);
 
    module.exports = gardrExt;

Options (host)

resizeInnerHorizontal - boolean, enables horizontal resizing of iframe content

resizeInnerVertical - boolean, enables horizontal resizing of iframe content

resizeInnerCheckDelay - number, amount of miliseconds after which resizing will be performed (default: instant)

Example

var gardr = gardrHost(...);
gardr.queue('ad', {
    resizeInnerHorizontal: true,
    resizeInnerVertical: true,
    ...
});

Package Sidebar

Install

npm i gardr-plugin-ext-resize

Weekly Downloads

1

Version

0.3.0

License

MIT

Last publish

Collaborators

  • kjarmicki