Comments (2)
// var newHeight = $body[0].scrollHeight + options.heightOffset;
var newHeight = $(iframe).contents().find("body").height();
by getting the body's height instead of contents' height, i don't need to reset the iframe to 0px anymore.
so by this we'll get smooth height animation
from jquery-iframe-auto-height.
I finally integrated the change to use jquery animate - 5c97458
The .height() does not work well when resizing from tall to short iframes, might try some variations on that later
from jquery-iframe-auto-height.
Related Issues (20)
- Better cross-browser height detection
- iFrame contents erased after calling iframeAutoHeight HOT 2
- $.browser has been removed from jQuery 1.9.0 HOT 4
- calculation of newHeight based on minHeight in IE and FF
- Chrome Issue - plugin not working HOT 11
- Trigger event for select element? HOT 1
- ----------------------> Looking for maintainer HOT 3
- Clinking on <a> changes iframe SRC. Need to be clicked 2 times to work HOT 2
- iframe has collapsable menu HOT 2
- Does not work on www prefix HOT 7
- Not working in aacorians HOT 1
- Chrome Version 31.0.1650.63 m issue HOT 2
- DOM changes lost after initializing plugin in Chrome/Safari and Opera HOT 1
- 'windowResizeFunction' not working on my project HOT 2
- Resizing not working in IE11 HOT 1
- No resizing in IE/FireFox with JQM
- Update nuget package? HOT 2
- Auto width? HOT 1
- Load event issue on Webkit/Opera HOT 1
- add to npm registry HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery-iframe-auto-height.