Skip to main content

Bug Tracker

Side navigation

#9788 closed bug (duplicate)

Opened July 09, 2011 03:56AM UTC

Closed July 09, 2011 04:05PM UTC

Last modified July 09, 2011 04:06PM UTC

.position() and .offset() return rotated values

Reported by: anonymous Owned by:
Priority: low Milestone: 1.next
Component: offset Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:
Description

This happens in Chrome, firefox works well. I don't test on other browsers.

If an element is rotated by '-webkit-transform: rotate(30deg)', the position() and offset() do not return the left/top value specified in css style. It gives the value transformed via the rotate matrix.

There is a simple demo.

http://jsfiddle.net/kevinxiao/92vfL/show

The two elements in demo are draggable. When the yellow one is dragged, it itself move towards top some pixels, I think that's caused by this bug.

My Chrome version is Chromium 11.0.696.71 (86024) Ubuntu 11.04

Attachments (0)
Change History (3)

Changed July 09, 2011 03:58AM UTC by anonymous comment:1

The demo address updated to http://jsfiddle.net/kevinxiao/92vfL/1/show/

Changed July 09, 2011 04:05PM UTC by timmywil comment:2

component: unfiledoffset
priority: undecidedlow
resolution: → duplicate
status: newclosed

Changed July 09, 2011 04:06PM UTC by timmywil comment:3

Duplicate of #8362.