Skip to main content

Bug Tracker

Side navigation

#6539 closed bug (patchwelcome)

Opened May 06, 2010 11:54PM UTC

Closed November 20, 2010 09:36PM UTC

.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)
  • OpenerOffsetBug.zip (0.9 KB) - added by jsuwala May 06, 2010 11:55PM UTC.

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

Change History (2)

Changed November 12, 2010 02:40AM UTC by snover comment:1

milestone: 1.4.3

Resetting milestone to future.

Changed November 20, 2010 09:36PM UTC by snover comment:2

priority: → undecided
resolution: → patchwelcome
status: newclosed

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