Skip to main content

Search and Top Navigation

#7263 closed bug (duplicate)

Opened April 17, 2011 04:11PM UTC

Closed April 26, 2011 12:45AM UTC

Last modified April 26, 2011 12:45AM UTC

Wrong position when draggable element or it's parent has transformations

Reported by: Syndikaattori Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.draggable Version: 1.8.11
Keywords: Cc:
Blocked by: Blocking:
Description

When element or it's parent has transforms, eg. rotate or scale, the element translates to wrong position when dragging using JQuery UI Draggable.

For example these examples fail (tested in Mac Chrome 10 and Safari 5):

$("#element_id").draggable();

$("#element_id").css("-webkit-transform","rotate(10deg)");

$("#element_id").css("-webkit-transform","scale(2,2)");

$("#element_id").parent().css("-webkit-transform","rotate(10deg)");

$("#element_id").parent().css("-webkit-transform","scale(2,2)");

The problematic part seems to be _generatePosition() function which returns top and left position of element, but ignores all transformations. This bug makes using UI Draggable almost impossible in many situations.

Attachments (0)
Change History (2)

Changed April 26, 2011 12:45AM UTC by scottgonzalez comment:1

resolution: → duplicate
status: newclosed

Changed April 26, 2011 12:45AM UTC by scottgonzalez comment:2

Duplicate of #6844.