Created
July 7, 2014 11:29
-
-
Save tcarlsen/589d0c8fa5156ad0498e to your computer and use it in GitHub Desktop.
Dynamic iFrame height
This file contains 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
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