Opened 15 years ago
Closed 14 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 15 years ago by
Milestone: | → 0.4 |
---|
comment:2 Changed 15 years ago by
Milestone: | 0.4 → 0.5 |
---|
comment:3 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed in 0.9.