aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-09-19 21:55:25 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-09-19 21:55:25 +0900
commit2286448b6839251aa490c226cb2384a14b937662 (patch)
tree2756761c2f49f48c7997fd402f215f3ff188b5cc /src
parent5d0c33c1a678ceb91f82c632e34345fe815e7e29 (diff)
use offsetHeight to check element visibility
Diffstat (limited to 'src')
-rw-r--r--src/content/follow.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/content/follow.js b/src/content/follow.js
index 7d69b45..eedd1ed 100644
--- a/src/content/follow.js
+++ b/src/content/follow.js
@@ -142,6 +142,7 @@ export default class Follow {
return style.display !== 'none' &&
style.visibility !== 'hidden' &&
element.type !== 'hidden' &&
+ element.offsetHeight > 0 &&
Follow.inWindow(window, element);
});
return filtered;