Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Iframe not auto expanding in IE8 or lower on XP
<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>
@withremote

This comment has been minimized.

Copy link
Owner Author

commented Feb 1, 2013

Removing the $(document).ready fixed the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.