From 6aaa3841d2ee5f82d649a04d37ce8a6a0d77ad85 Mon Sep 17 00:00:00 2001 From: Adrian Vollmer Date: Sun, 18 Feb 2024 21:02:36 +0100 Subject: [PATCH] Create the iframe without `display='none'` This is important for JavaScript programs like mermaid, which initialize an svg based on the actual size of the parent div. See #5 --- zundler/assets/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zundler/assets/main.js b/zundler/assets/main.js index f7979d6..b7da54a 100644 --- a/zundler/assets/main.js +++ b/zundler/assets/main.js @@ -27,7 +27,7 @@ var createIframe = function() { iframe.setAttribute('src', '#'); iframe.setAttribute('name', iFrameId); iframe.setAttribute('id', iFrameId); - iframe.style.display = 'none'; + // iframe.style.display = 'none'; return iframe; }