X-Git-Url: https://www.kengrimes.com/gitweb/?p=kengrimes.com%2Ftheme.git;a=blobdiff_plain;f=static%2Fjs%2Fmain.js;h=13c4dae668bcbf0cfb4b8987dbb39fa84a4cbe91;hp=a69935718c0859b101a911601bed4dc0806b6ba0;hb=2bdf0073b6bdd74e3f64a358239b43ec650dad10;hpb=448df86b7a0809257ac01e7cdf0c8002ae05d8e2 diff --git a/static/js/main.js b/static/js/main.js index a699357..13c4dae 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -22,5 +22,5 @@ window.onload = () => { } const resizeIFrame = (iframe) => { iframe.style.height = 0 - iframe.style.height = document.body.scrollHeight + 'px'; + iframe.style.height = (iframe.contentWindow.document.body.scrollHeight * 1.2) + 'px'; }