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
This commit is contained in:
Adrian Vollmer 2024-02-18 21:02:36 +01:00
parent 3fa8f86019
commit 6aaa3841d2

View File

@ -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;
}