From 3fc85e94aaa6f47cf20c6af1bfaf80b9bb6ead2f Mon Sep 17 00:00:00 2001 From: ken Date: Fri, 30 Mar 2018 17:58:01 -0700 Subject: [PATCH] iframe resizer use internal body --- 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 a699357..b0ada37 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 + 'px'; } -- 2.18.0