Use visibility: hidden to hide webviews

This commit is contained in:
Thomas Brouard 2017-09-14 17:39:15 +02:00
parent b579379d88
commit 0b078d235d

View file

@ -8,12 +8,12 @@ if (!document) {
(function () {
const styles = `
webview {
display: flex;
flex: 0 1;
visibility: hidden;
width: 0px;
height: 0px;
}
webview.visible {
visibility: visible;
width: 100%;
height: 100%;
top: 0;