#2921 closed bug (wontfix)
scrollTop and scrollLeft always return 0, when element is hidden
Reported by: | dragon | Owned by: | brandon |
---|---|---|---|
Priority: | major | Milestone: | 1.3 |
Component: | dimensions | Version: | 1.2.5 |
Keywords: | scroll error | Cc: | |
Blocked by: | Blocking: |
Description
scrollLeft and scrollTop always return 0 in Firefox 2, when the element is hidden (after a hide() call)
Note: See
TracTickets for help on using
tickets.
The element has to be visible. Either the scrollTop/Left method has to do the detection and call .show() or you can just call .show() before getting these calculations. I'm reluctant to put the overhead of the detection into the scrollTop/Left methods.