0.3.0 • Published 10 years ago
gardr-plugin-ext-resize v0.3.0
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,
...
});