mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 03:53:53 +00:00
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:
commit
1e4e5b0f07
|
@ -129,5 +129,5 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.etab-view {
|
.etab-view {
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
9
index.js
9
index.js
|
@ -8,16 +8,17 @@ if (!document) {
|
||||||
(function () {
|
(function () {
|
||||||
const styles = `
|
const styles = `
|
||||||
webview {
|
webview {
|
||||||
width: 0px;
|
|
||||||
height: 0px;
|
|
||||||
}
|
|
||||||
webview.visible {
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
position: absolute;
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
webview.visible {
|
||||||
|
visibility: visible;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
let styleTag = document.createElement("style");
|
let styleTag = document.createElement("style");
|
||||||
|
|
Loading…
Reference in a new issue