Opened 13 years ago
Closed 13 years ago
#7602 closed bug (fixed)
jQuery.fn.offset() returns ClientRect object for disconnected elements
Reported by: | rholbrook | Owned by: | rholbrook |
---|---|---|---|
Priority: | high | Milestone: | 1.5 |
Component: | offset | Version: | 1.4.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Normally offset() returns a generic object with just top and left properties, however in the case of a disconnected element, it returns a ClientRect object instead. This causes problems for jQuery.fn.position(), which needs to modify properties of the returned object.
Tested on FireFox 3.5, IE 7, and Safari 5. Safari 5 doesn't throw an error, but silently fails to update the ClientRect object inside of position()
Example case: http://jsfiddle.net/Hm5w3/
Change History (5)
comment:1 Changed 13 years ago by
Component: | unfiled → offset |
---|---|
Priority: | undecided → high |
Status: | new → open |
comment:2 Changed 13 years ago by
Owner: | set to rholbrook |
---|---|
Status: | open → assigned |
comment:4 Changed 13 years ago by
How come you still haven't pulled the patch? See pull requests 109 or 168!
Note: See
TracTickets for help on using
tickets.
3rd party pull request