Merge pull request #83 from inureyes/master

Hide webviews using visibility style instead of zero size (macOS tested)
fixes #59, closes #60
This commit is contained in:
Thomas Brouard 2019-10-15 15:08:47 +02:00 committed by GitHub
commit 1e4e5b0f07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View file

@ -129,5 +129,5 @@
}
.etab-view {
position: relative;
}

View file

@ -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");