Skip to main content

Bug Tracker

Side navigation

#6033 closed bug (invalid)

Opened February 04, 2010 09:39PM UTC

Closed November 19, 2010 04:10AM UTC

.position().top returns incorrect results in IE6 and IE7

Reported by: chrisbarr Owned by: brandon
Priority: major Milestone: 1.4.2
Component: offset Version: 1.4.1
Keywords: Cc:
Blocked by: Blocking:
Description

Head over to the ``.position()`` jQuery demo page: http://api.jquery.com/position/

In IE8, Firefox, Chrome the demo for ``.position().top`` returns 15

But in IE6 and IE7 it returns ``34`` - more than double what it should be.

In our project I'm having a similar problem, but a different result. The 'good' browsers return ``71` and IE7 return `35`` - but it actually works correctly in IE6.

Attachments (0)
Change History (1)

Changed November 19, 2010 04:10AM UTC by snover comment:1

resolution: → invalid
status: newclosed

Thanks for the report, but this is not a jQuery bug. This is an IE hasLayout bug. The position is “accurate” in that it is where the browser is positioning the element, even though it doesn’t correspond to where it should be positioning it.