Created
November 28, 2016 06:49
-
-
Save snowbob/8b1ebd5357f327b73e4cf340601a1d82 to your computer and use it in GitHub Desktop.
resizeIframe
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
var iframe = parent.document.getElementById("memo").contentWindow; | |
var h = iframe.document.body.offsetHeight + 'px' | |
parent.$('#memo').css('height', h); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment