Side navigation
#6151 closed bug ()
Opened February 23, 2010 02:06PM UTC
Closed November 11, 2010 11:09PM UTC
Last modified March 13, 2012 02:56PM UTC
offset() gives wrong values in iframe if parent scrolled
Reported by: | friedcell | Owned by: | friedcell |
---|---|---|---|
Priority: | low | Milestone: | 1.5 |
Component: | offset | Version: | 1.4.1 |
Keywords: | iframe offset | Cc: | brandon |
Blocked by: | Blocking: |
Description
When trying to get the offset of an element that is inside an iframe, offset() will return wrong values if the outer document is scrolled (scrollTop != 0).
Case with instructions is on http://code.zemanta.com/fry/outer.html
Bug traced back to use of self for window reference instead of elem.defaultView. Patch available on github: http://github.com/friedcell/jquery/commit/1c8ca5b257644653667676fe97b210e587fb7d19
Attachments (0)
Change History (5)
Changed August 11, 2010 12:31PM UTC by comment:1
Changed October 25, 2010 07:10AM UTC by comment:2
keywords: | → iframe offset |
---|---|
milestone: | 1.4.2 → 1.5 |
owner: | → friedcell |
priority: | → low |
status: | new → pending |
Does that mean that you tested it in 1.4.2 and it worked? Can you let us know if this is still an issue for you? Thanks.
Changed October 25, 2010 11:25AM UTC by comment:3
According to the comment on github it was fixed, but looking at the case now it seems utterly broken.
Changed November 11, 2010 11:09PM UTC by comment:4
status: | pending → closed |
---|
Automatically closed due to 14 days of inactivity.
Changed October 20, 2011 10:59PM UTC by comment:5
This is fixed in jQuery 1.5 and 1.6 in firefox, but not in IE8 and below.
I'm guessing this was fixed in 1.4.2?