Skip to content

Instantly share code, notes, and snippets.

@tcarlsen
Created July 7, 2014 11:29
Show Gist options
  • Save tcarlsen/589d0c8fa5156ad0498e to your computer and use it in GitHub Desktop.
Save tcarlsen/589d0c8fa5156ad0498e to your computer and use it in GitHub Desktop.
Dynamic iFrame height
function updateIframeSize() {
$('iframe.dynamic').height(window.innerHeight - ($('.header').height())).width("100%");
}
updateIframeSize();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment