Last active
December 12, 2015 01:48
-
-
Save withremote/4693420 to your computer and use it in GitHub Desktop.
Iframe not auto expanding in IE8 or lower on XP
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
<iframe src="/somelocalfile.htm" frameborder="0" scrolling="no" width="100%" id="myIframe" class="auto-height"></iframe> | |
<script type="text/javascript" src="/js/libs/iframe-auto-height/jquery.iframe-auto-height.js"></script> | |
<script language="JavaScript"> | |
jQuery('iframe.auto-height').iframeAutoHeight({ | |
heightOffset: 10, | |
minHeight: 300 | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Removing the $(document).ready fixed the issue!