diff --git a/electron-tabs.css b/electron-tabs.css index 6e20083..d93aa6e 100644 --- a/electron-tabs.css +++ b/electron-tabs.css @@ -129,5 +129,5 @@ } .etab-view { - + position: relative; } diff --git a/index.js b/index.js index 8d088cf..dcaca17 100644 --- a/index.js +++ b/index.js @@ -8,16 +8,17 @@ if (!document) { (function () { const styles = ` webview { - width: 0px; - height: 0px; - } - webview.visible { width: 100%; height: 100%; top: 0; right: 0; bottom: 0; left: 0; + position: absolute; + visibility: hidden; + } + webview.visible { + visibility: visible; } `; let styleTag = document.createElement("style");