Created
August 7, 2019 09:23
-
-
Save sudikrt/3c6ffbc0f59721daaa0371e4518f6801 to your computer and use it in GitHub Desktop.
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
var lastHeight = 0, curHeight = 0, iframe = $('.recaptchaFrame'); | |
iframe = iframe[0]; | |
setInterval(function(){ | |
// for lwciframe.style.height = iframe.contentWindow.document.body.scrollHeight + 'px'; | |
curHeight = $frame.contents().find('body').height(); | |
if ( curHeight != lastHeight ) { | |
$frame.css('height', (lastHeight = curHeight) + 'px' ); | |
} | |
},500); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment