Bug Tracker

Modify

Ticket #8730 (closed bug: worksforme)

Opened 2 years ago

Last modified 23 months ago

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

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

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.

comment:4 Changed 23 months ago by rwaldron

  • Keywords webkit firefox position removed
  • Priority changed from undecided to low
  • Status changed from open to closed
  • Resolution set to worksforme

This appears to be resolved.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.