From 1545e2a433158c5969381a101cc24655e01772c7 Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Mon, 20 Jul 2015 15:36:24 +0100 Subject: Treat links with fixed position children like absolutely positioned This fixes #1770. --- lib/dom_utils.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3