[jQuery] Error in jQuery documentation?
Hello,
I think i've found an error in the jQuery documentation, or i am
misunderstanding something. This page:
http://docs.jquery.com/CSS/offset
... states that offset() gives you 'the current offset of the first
matched element relative to the viewport.' My tests seem to show that
it actually gives the offset relative to the document, NOT the
viewport. If it were relative to the viewport, the number should
change as I scroll the document around; it doesn't. It stays the same
which suggests to me it's relative to the top-left of the document.
May I change the documentation to reflect this?
Best regards,
Jeremy Morton (Jez)