diff --git a/frontend/app.js b/frontend/app.js index 5b7bf30..74fa0a4 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -3302,7 +3302,7 @@ var iframe = document.createElement("iframe"); iframe.id = "forge-iframe"; iframe.src = "/editor-poc?vault=" + encodeURIComponent(data.vault) + "&path=" + encodeURIComponent(data.path); - iframe.style.cssText = "width:100%;height:100%;border:none;"; + iframe.style.cssText = "position:absolute;top:0;left:0;width:100%;height:100%;border:none;"; bodyEl.appendChild(iframe); modal.classList.add("active"); safeCreateIcons(); diff --git a/frontend/js/viewer.js b/frontend/js/viewer.js index dbbc30f..5c906b1 100644 --- a/frontend/js/viewer.js +++ b/frontend/js/viewer.js @@ -507,7 +507,7 @@ export function renderFile(data) { var iframe = document.createElement("iframe"); iframe.id = "forge-iframe"; iframe.src = "/editor-poc?vault=" + encodeURIComponent(data.vault) + "&path=" + encodeURIComponent(data.path); - iframe.style.cssText = "width:100%;height:100%;border:none;"; + iframe.style.cssText = "position:absolute;top:0;left:0;width:100%;height:100%;border:none;"; bodyEl.appendChild(iframe); modal.classList.add("active"); safeCreateIcons();