Closed marcinwenger closed 10 years ago
offsetTop gives coordinates relative to the offsetParent of the element.
offsetTop
offsetParent
The patch moves up the tree of offsetParents and adds the offsetTop each.
Thanks for this PR @marcinwenger it really helped :-)
offsetTop
gives coordinates relative to theoffsetParent
of the element.The patch moves up the tree of
offsetParent
s and adds theoffsetTop
each.