Opened 10 years ago

Closed 9 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 10 years ago by Mathevet julien

I would add example but I couldn't with current source... I need working source

comment:2 Changed 10 years ago by Mathevet julien

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 10 years ago by Adam Peller

Owner: changed from Adam Peller to dante

comment:4 Changed 10 years ago by dante

Milestone: tbd1.5

comment:5 Changed 9 years ago by Adam Peller

Milestone: 1.51.6

comment:6 Changed 9 years ago by bill

Component: DojoxDojoX Layout

comment:7 Changed 9 years ago by dante

Resolution: invalid
Status: newclosed

please reopen with an attached test case.

Note: See TracTickets for help on using tickets.