[bugfix] Tabs: incorrect line position in some cases (#3961)

This commit is contained in:
neverland
2019-07-25 19:03:16 +08:00
committed by GitHub
parent f52890cfd6
commit 3c2270a5ad
20 changed files with 154 additions and 168 deletions
+5
View File
@@ -0,0 +1,5 @@
export function isHidden(element: HTMLElement) {
return (
window.getComputedStyle(element).display === 'none' || element.offsetParent === null
);
}