Skip to main content

Bug Tracker

Side navigation

#12559 closed bug (invalid)

Opened September 18, 2012 07:32PM UTC

Closed October 03, 2012 09:02AM UTC

.position() and .offset() fail within overflow-scrolled elements

Reported by: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:

jQuery dimensions functions (position and offset) are broken

when applied to elements inside an overflow-scrolled element. e.g offset() calls getBoundingClientRect and adjusts it's viewport-relative position to an absolute position for window/iframe scrolling ONLY.

I'm pretty sure this is the problem, because if I force the overflow-y:scroll element to scrollTop=0 before calling the functions, all is well... Also, disabling use of getBoundingClientRect doesn't help, so the built-in .offset() code is broken as well (This code was removed by v1.8.1).

Tested in Chrome 21.0.1180/Windows.

Attachments (0)
Change History (2)

Changed September 18, 2012 08:18PM UTC by dmethvin comment:1

owner: →
status: newpending

Hi, can you provide a test case to go with the story? Something on would be ideal. We're planning on 1.8.2 later this week so it would be great if you could give us a test case and as much additional info as possible.

Changed October 03, 2012 09:02AM UTC by trac-o-bot comment:2

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!