Side navigation
#4560 closed bug (worksforme)
Opened April 20, 2009 01:58PM UTC
Closed July 11, 2011 07:08PM UTC
.position().left incorrect in Chromium (possibly webkit)
Reported by: | Anverc | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | 1.next |
Component: | dimensions | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Problem: Getting the position of a centered img element returns an incorrect .left in chrome (haven't tested other webkit browsers).
see http://bennyland.com/test.html for a stripped down version of the bug I'm seeing (and then resize the window) for an example. You'll notice a red box show up once you resize the window - in IE and FF, this red box is centered over the top of the image, in Chrome, the red box is all the way to the left - this is because position().left is returning "10".
note: I was hopeful that http://dev.jquery.com/ticket/4263 would solve the problem, however I implemented that changelist on a different (non stripped) test and the problem was still there.
note2: I've also attached a zip which contains the example files from bennyland.com
Attachments (1)
Change History (3)
Changed June 12, 2010 06:23PM UTC by comment:1
component: | unfiled → dimensions |
---|
Changed October 29, 2010 03:40PM UTC by comment:2
milestone: | 1.4 → 1.4.5 |
---|---|
priority: | major → low |
status: | new → open |
Confirmed in Chrome 8 with 1.4.4-git, the image has:
left: 0px
but the correct value can be found in the computed styles as the margin-left value
Changed July 11, 2011 07:08PM UTC by comment:3
resolution: | → worksforme |
---|---|
status: | open → closed |
This issue appears to be fixed in later versions of Chrome and Safari, even against jQuery 1.3.2. If this issue persists, please comment on this ticket with a reduced test case and we can investigate it further.