Bug Tracker

Modify

Ticket #6539 (closed bug: patchwelcome)

Opened 4 years ago

Last modified 3 years ago

.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:
Blocking: Blocked by:

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

OpenerOffsetBug.zip Download (903 bytes) - added by jsuwala 4 years ago.
Example showing how .offset().top returns the wrong value

Change History

Changed 4 years ago by jsuwala

Example showing how .offset().top returns the wrong value

comment:1 Changed 3 years ago by snover

  • Milestone 1.4.3 deleted

Resetting milestone to future.

comment:2 Changed 3 years ago by snover

  • Priority set to undecided
  • Status changed from new to closed
  • Resolution set to patchwelcome

We’re not going to fix this ourselves since it is a very unlikely scenario, but we would be happy to consider a patch.

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.