Opened 13 years ago

Closed 12 years ago

#1347 closed defect (fixed)

HtmlDragAndDrop - onDragStart() with absolute positioning by bottom and right

Reported by: guest Owned by: psowden
Priority: high Milestone: 0.9
Component: DnD Version: 0.3
Keywords: Cc:
Blocked By: Blocking:

Description

I have detected the following misbehaviour in the HtmlDragAndDrop? onDragStart() method:

If you want to drag and drop an object that is absolute positioned by bottom and right the object is 'pinned' to the bottom position during drag operation because these attributes aren´t reset in the onDragStart() method. I have noticed that almost everywhere 'bottom' and 'right' attributes are not treated!

A simple fix I have tried worked for me. Setting the bottom and right attributes to 'null' seems to fix the behaviour in the onDragStart() method inside HtmlDragAndDrop?:

...

set up for dragging with(this.dragClone.style){

position = "absolute"; top = this.dragOffset.y + e.pageY + "px"; left = this.dragOffset.x + e.pageX + "px"; bottom = null; right = null;

}

...

Change History (3)

comment:1 Changed 13 years ago by dylan

Milestone: 0.4

comment:2 Changed 13 years ago by dylan

Milestone: 0.40.5

comment:3 Changed 12 years ago by Eugene Lazutkin

Resolution: fixed
Status: newclosed

Fixed in 0.9.

Note: See TracTickets for help on using tickets.