Opened 13 years ago
Closed 12 years ago
#6539 closed bug (patchwelcome)
.offset() uses scroll offset of current document, not of the element's current context
Reported by: | jsuwala | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | |
Component: | core | Version: | 1.4.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When using $('#elId', opener.document).offset(); in a popup window (to get the height of an element in the opening document), the .top value returned uses the .scrollTop of the popup, and not of the opener.
Attachments (1)
Change History (3)
Changed 13 years ago by
Attachment: | OpenerOffsetBug.zip added |
---|
comment:2 Changed 12 years ago by
Priority: | → undecided |
---|---|
Resolution: | → patchwelcome |
Status: | new → closed |
We’re not going to fix this ourselves since it is a very unlikely scenario, but we would be happy to consider a patch.
Note: See
TracTickets for help on using
tickets.
Example showing how .offset().top returns the wrong value