flurin-d
2/21/2017 - 1:06 PM

HIRT - iframe resize

HIRT - iframe resize

<script type="text/javascript">
	   function calcHeight() {
	    var the_height=document.getElementById('the_iframe').contentWindow.document.body.scrollHeight;
	    document.getElementById('the_iframe').height=the_height;
	   }
	   window.addEventListener('resize', calcHeight);
</script>