Opened 11 years ago
Closed 10 years ago
#10263 closed defect (invalid)
dojox.layout.dnd.PlottedDnd - Couldn't set an offsetDrag.y to 0
Reported by: | Mathevet julien | Owned by: | dante |
---|---|---|---|
Priority: | high | Milestone: | 1.6 |
Component: | DojoX Layout | Version: | 1.4.0b |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Hi, I repaired offsetDrag inside GridContainer. but I am waiting patch #10241 before commit this new patch. And now I would set an offsetDrag 0,0 (x and y). But Plotted dnd force y to 16 px, in onMouseDown:
if(this.offsetDrag.y < 16 && this.current != null){ console.log("force offsetDrag.y %s, %s", this.offsetDrag.y, this.current); this.offsetDrag.y = this.GC_OFFSET_Y; }
If comment this, it doesn't work. I could drag, but drop doesn't work. It need an offset > 0. Could you help me.
Change History (7)
comment:1 Changed 11 years ago by
comment:2 Changed 11 years ago by
Seems more general:
var m = dojo.dnd.manager(); m.OFFSET_X = this.offsetDrag.x; m.OFFSET_Y = this.offsetDrag.y;
When you set OFFSET_X, OFFSET_Y off dojo.dnd.manager, it harder to found drop zone. And doesn't work with GridContainer
comment:3 Changed 11 years ago by
Owner: | changed from Adam Peller to dante |
---|
comment:4 Changed 11 years ago by
Milestone: | tbd → 1.5 |
---|
comment:5 Changed 11 years ago by
Milestone: | 1.5 → 1.6 |
---|
comment:6 Changed 11 years ago by
Component: | Dojox → DojoX Layout |
---|
comment:7 Changed 10 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
please reopen with an attached test case.
Note: See
TracTickets for help on using
tickets.
I would add example but I couldn't with current source... I need working source