Commit 5aa55320 authored by Dheeraj Joshi's avatar Dheeraj Joshi

Fix styling issue for sandboxed mermaid charts

parent 78333253
......@@ -91,6 +91,7 @@ function renderMermaidEl(el, source) {
sandbox: 'allow-scripts',
frameBorder: 0,
scrolling: 'no',
width: '100%',
});
// Add the original source into the DOM
......@@ -119,7 +120,6 @@ function renderMermaidEl(el, source) {
return;
}
const { h } = event.data;
iframeEl.width = '100%';
iframeEl.height = `${h + BUFFER_IFRAME_HEIGHT}px`;
},
false,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment