Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deradon/jquery-iframe_auto_resize
JQuery Plugin to auto-resize iFrame from same domain.
https://github.com/deradon/jquery-iframe_auto_resize
deprecated unmaintained
Last synced: 25 days ago
JSON representation
JQuery Plugin to auto-resize iFrame from same domain.
- Host: GitHub
- URL: https://github.com/deradon/jquery-iframe_auto_resize
- Owner: Deradon
- License: mit
- Created: 2011-09-05T19:58:35.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-01-20T17:56:21.000Z (about 13 years ago)
- Last Synced: 2024-11-12T15:35:09.127Z (3 months ago)
- Topics: deprecated, unmaintained
- Language: Ruby
- Homepage:
- Size: 117 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- Changelog: Changelog.rdoc
- License: MIT-LICENSE
Awesome Lists containing this project
README
= JqueryIframeAutoResize
JQuery Plugin to auto-resize iFrames from same domain.
== Setup: put following to your Gemfile
..
gem "jquery-iframe_auto_resize"
..== Incude in your application.js
..
//= require jquery.iframe_auto_resize
..== Example:
$(document).ready(function () {
$('iframe').iframeAutoResize({
interval: 100, // ms
minHeight: 200, // px
maxHeight: 800, // px
heightOffset: 5, // px
animationSpeed: 500, // in px / s
maxAnimationTime: 1000, // in ms
callback: function(){/*...*/},
debug: false
});
});== Known Bugs:
* Issues if margins on iFrames are used
* Issues with IE if iframe with "frameborder='1'" is used