angular-ui/ui-utils — pull request #156 by edyburn (2014-01-03 17:02:44+00:00)
Title: Account for parent element offsets in scrollfix.

When an ancestor of the scrollfixed element has position: relative, the value of element.offsetTop is not sufficient to determine the element's position, as it will be the offset from the relatively positioned ancestor instead of the top of the page.

This patch checks the offset of the element's ancestors, as described in http://www.quirksmode.org/js/findpos.html