Opened 12 years ago
Closed 12 years ago
#8730 closed bug (worksforme)
Chrome 10 & 12(nightly) report different values for position()
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | offset | Version: | 1.5.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
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 (4)
comment:1 Changed 12 years ago by
Owner: | set to [email protected]… |
---|---|
Status: | new → pending |
comment:2 Changed 12 years ago by
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 12 years ago by
Component: | unfiled → offset |
---|---|
Keywords: | webkit firefox position added |
Status: | pending → open |
Version: | 1.5.1 → 1.5.2 |
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.
comment:4 Changed 12 years ago by
Keywords: | webkit firefox position removed |
---|---|
Priority: | undecided → low |
Resolution: | → worksforme |
Status: | open → closed |
This appears to be resolved.
Thank you for submitting a bug report to the jQuery project! Please provide a test case on http://jsfiddle.net that reproduces your issue.