Bug Tracker

Modify

Ticket #2921 (closed bug: wontfix)

Opened 5 years ago

Last modified 14 months ago

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

comment:1 Changed 4 years ago by brandon

  • Status changed from new to closed
  • Resolution set to wontfix

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.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.