File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ class SimulationViewerInjector {
8686 var frame = document.createElement("iframe");
8787 frame.width = node.dataset.width || 800;
8888 frame.height = node.dataset.height || 800;
89+ frame.style.cssText = `width:${frame.width}px;height:${frame.height}px;max-width:none;border:0;display:block`
8990 frame.src = VIEWER_URL + "?uuid=" + uuid;
9091
9192 var postMessageToViewer;
@@ -114,7 +115,7 @@ class SimulationViewerInjector {
114115 })();
115116 """
116117 html_code = f"""
117- <div class="simulation-viewer" data-width="{ escape (str (width ))} " data-height="{ escape (str (height ))} " data-simulation="{ escape (base64 )} " / >
118+ <div class="simulation-viewer" data-width="{ escape (str (width ))} " data-height="{ escape (str (height ))} " data-simulation="{ escape (base64 )} " ></div >
118119 <script>
119120 { js_code }
120121 </script>
You can’t perform that action at this time.
0 commit comments