Skip to main content

Bug Tracker

Side navigation

#8730 closed bug (worksforme)

Opened March 31, 2011 07:06PM UTC

Closed July 12, 2011 03:33PM UTC

Chrome 10 & 12(nightly) report different values for position()

Reported by: Owned by:
Priority: low Milestone:
Component: offset Version: 1.5.2
Keywords: Cc:
Blocked by: Blocking:

I have a div that is 940px wide and is centered using margin:0 auto;

In Chrome 10.1.648.204, $('#mydiv').position() reports 0,0 for left and top respectively. In Chrome 12.0.712.0 (nightly) reports values (490,0) for the same div using $('#mydiv').position().

Attachments (0)
Change History (4)

Changed March 31, 2011 08:24PM UTC by timmywil comment:1

owner: →
status: newpending

Thank you for submitting a bug report to the jQuery project! Please provide a test case on that reproduces your issue.

Changed March 31, 2011 08:32PM UTC by timmywil comment:2

Also, Chrome nightly is not supported until it's official release, but Rick Waldron said he would review your issue if you could provide a test case.

Changed April 01, 2011 10:27PM UTC by timmywil comment:3

component: unfiledoffset
keywords: → webkit firefox position
status: pendingopen
version: Thanks to adamjmcintyre for providing a test case. It seems the problem is in Chrome 10 and Firefox 3.6. IE6-8 and F4 show different results.

Changed July 12, 2011 03:33PM UTC by rwaldron comment:4

keywords: webkit firefox position
priority: undecidedlow
resolution: → worksforme
status: openclosed

This appears to be resolved.