From 2bdf0073b6bdd74e3f64a358239b43ec650dad10 Mon Sep 17 00:00:00 2001 From: ken Date: Fri, 30 Mar 2018 17:59:49 -0700 Subject: [PATCH] iframe resizer use internal body, plus margin --- static/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; } -- 2.18.0