Ticket #8730 (closed bug: worksforme)
Chrome 10 & 12(nightly) report different values for position()
| Reported by: | geuis.teses@… | Owned by: | geuis.teses@… |
|---|---|---|---|
| Priority: | low | Milestone: | 1.next |
| Component: | offset | Version: | 1.5.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
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().
Change History
comment:1 Changed 2 years ago by timmywil
- Owner set to geuis.teses@…
- Status changed from new to pending
comment:2 Changed 2 years ago by timmywil
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.
comment:3 Changed 2 years ago by timmywil
- Keywords webkit firefox position added
- Status changed from pending to open
- Version changed from 1.5.1 to 1.5.2
- Component changed from unfiled to offset
http://jsfiddle.net/FFRsx/2/ 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.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

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