Bug Tracker

Opened 12 years ago

Closed 11 years ago

Last modified 8 years ago

#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)

Change History (1)

comment:1 Changed 11 years ago by brandon

Resolution: wontfix
Status: newclosed

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.

Note: See TracTickets for help on using tickets.