Last active
August 29, 2015 14:03
-
-
Save Tethik/3ae7e1c188c4503bf5c0 to your computer and use it in GitHub Desktop.
AngularJS Autoresizing iframe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (parent && window.frameElement) | |
$interval(function () { | |
window.frameElement.style.height = (document.body.offsetHeight + 60) + "px"; | |
}, 10); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Obviously, replace $interval with setInterval in normal js. No need for angular.