gardr-plugin-ext-resize
v0.3.0
Published
Gardr plugin for resizing content of an iframe
Downloads
4
Readme
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,
...
});