Bug Tracker


Ticket #5781 (closed bug: fixed)

Opened 4 years ago

Last modified 2 years ago

.offset() setter does not work properly on absolutely positioned elements with top/left set to auto

Reported by: scott.gonzalez Owned by: brandon
Priority: major Milestone: 1.4.3
Component: offset Version: 1.4a2
Keywords: Cc:
Blocking: Blocked by:


When an element is absolutely positioned and has the top or left properties set to "auto", the setOffset method defaults the curTop/curLeft variables to 0, causing incorrect position calculations. This probably occurs with fixed positioning as well.


offset-setter.html Download (551 bytes) - added by scott.gonzalez 4 years ago.

Change History

Changed 4 years ago by scott.gonzalez

comment:1 Changed 4 years ago by brandon

  • Status changed from new to assigned
  • Milestone changed from 1.4 to 1.4.3

comment:2 Changed 4 years ago by brandon

  • Status changed from assigned to closed
  • Resolution set to fixed

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


Add a comment

Modify Ticket

as closed

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

Note: See TracTickets for help on using tickets.