aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2015-08-22 12:07:27 +0100
committerStephen Blott2015-08-22 12:07:27 +0100
commit34e1abf2bf1e76ce0a283b3a9101628657c8a477 (patch)
tree3264d32109b721cd0e5eda490fc2265a5a2745b8
parent207c1591073c1577c50d37cc551cb25994ceca03 (diff)
parent1545e2a433158c5969381a101cc24655e01772c7 (diff)
downloadvimium-34e1abf2bf1e76ce0a283b3a9101628657c8a477.tar.bz2
Merge pull request #1771 from mrmr1993/detect-fixed-position-elements-linkhints
Treat css position 'fixed' like 'absolute' for link hints on children 0-width/height parents
-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