From 6c8441048160b133e75d1bb91ee1a97c32b449ac Mon Sep 17 00:00:00 2001 From: Jeongkyu Shin Date: Tue, 15 Oct 2019 19:57:11 +0900 Subject: [PATCH] update code for #59 --- electron-tabs.css | 2 +- index.js | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) 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");