Bug Tracker

Modify

Ticket #9788 (closed bug: duplicate)

Opened 2 years ago

Last modified 2 years ago

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

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

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

Change History

comment:1 Changed 2 years ago by anonymous

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

comment:2 Changed 2 years ago by timmywil

  • Priority changed from undecided to low
  • Resolution set to duplicate
  • Status changed from new to closed
  • Component changed from unfiled to offset

comment:3 Changed 2 years ago by timmywil

Duplicate of #8362.

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.