aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrmr19932015-07-20 15:36:24 +0100
committermrmr19932015-07-20 15:36:24 +0100
commit1545e2a433158c5969381a101cc24655e01772c7 (patch)
tree8052f046e6bbeae46a900037b405a871e2285953
parent51b21408870fbcd2e59c806a24082d9bdd5c5e84 (diff)
downloadvimium-1545e2a433158c5969381a101cc24655e01772c7.tar.bz2
Treat links with fixed position children like absolutely positioned
This fixes #1770.
-rw-r--r--lib/dom_utils.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dom_utils.coffee b/lib/dom_utils.coffee
index 9658df2b..d4f5953d 100644
--- a/lib/dom_utils.coffee
+++ b/lib/dom_utils.coffee
@@ -82,7 +82,7 @@ DomUtils =
# NOTE(mrmr1993): This ignores floated/absolutely positioned descendants nested within inline
# children.
continue if (computedStyle.getPropertyValue("float") == "none" and
- computedStyle.getPropertyValue("position") != "absolute" and
+ not (computedStyle.getPropertyValue("position") in ["absolute", "fixed"]) and
not (clientRect.height == 0 and isInlineZeroHeight() and
0 == computedStyle.getPropertyValue("display").indexOf "inline"))
childClientRect = @getVisibleClientRect child, true