#5781 closed bug (fixed)
.offset() setter does not work properly on absolutely positioned elements with top/left set to auto
Reported by: | scottgonzalez | Owned by: | brandon |
---|---|---|---|
Priority: | major | Milestone: | 1.4.3 |
Component: | offset | Version: | 1.4a2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
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.
Attachments (1)
Change History (3)
Changed 14 years ago by
Attachment: | offset-setter.html added |
---|
comment:1 Changed 14 years ago by
Milestone: | 1.4 → 1.4.3 |
---|---|
Status: | new → assigned |
comment:2 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
This is now fixed: http://github.com/jquery/jquery/commit/656fe92178fda539d91fe31965b28bccff484778