mirror of
https://github.com/tcsenpai/Zundler.git
synced 2025-06-07 12:05:41 +00:00
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:
parent
3fa8f86019
commit
6aaa3841d2
@ -27,7 +27,7 @@ var createIframe = function() {
|
|||||||
iframe.setAttribute('src', '#');
|
iframe.setAttribute('src', '#');
|
||||||
iframe.setAttribute('name', iFrameId);
|
iframe.setAttribute('name', iFrameId);
|
||||||
iframe.setAttribute('id', iFrameId);
|
iframe.setAttribute('id', iFrameId);
|
||||||
iframe.style.display = 'none';
|
// iframe.style.display = 'none';
|
||||||
return iframe;
|
return iframe;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user