Modify ↓
Ticket #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: | |
| Blocking: | Blocked by: |
Description
scrollLeft and scrollTop always return 0 in Firefox 2, when the element is hidden (after a hide() call)
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
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.