From: ken Date: Sat, 31 Mar 2018 00:59:49 +0000 (-0700) Subject: iframe resizer use internal body, plus margin X-Git-Url: https://www.kengrimes.com/gitweb/?p=kengrimes.com%2Ftheme.git;a=commitdiff_plain;h=2bdf0073b6bdd74e3f64a358239b43ec650dad10 iframe resizer use internal body, plus margin --- diff --git a/static/js/main.js b/static/js/main.js index b0ada37..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 = iframe.contentWindow.document.body.scrollHeight + 'px'; + iframe.style.height = (iframe.contentWindow.document.body.scrollHeight * 1.2) + 'px'; }