Opened 8 years ago

Closed 7 years ago

#13425 closed defect (patchwelcome)

dojox.mdnd.AreaManager Can't handle multiple dragHandleClass

Reported by: Andrew Muraco Owned by: jfcunat
Priority: high Milestone: tbd
Component: Dojox Version: 1.6.1
Keywords: mdnd Cc: amuraco@…
Blocked By: Blocking:

Description

Description: When working with two drag and drop areas (I was using 2 GridContainers?, but this should apply to anything that uses AreaManager?) Where each GridContainer? has a specific dragHandleClass, Items won't drag and drop correctly when added to the first Area since the AreaManager? doesn't attach to the dragHandle. This is even more problematic when the dnd areas are nested, since the wrong node will become the dragHandle.

GridContainer? overwrites the dragHandleClass during initialization, since areaManager is a global singleton of AreaManager?, it overwrites this property for any other Containers that are using areaManager.

Note: acceptTypes/dndType aren't enough to fix the problem, AreaManager? doesn't attach to the right elements!

Workaround: Use the same class for all GridContainer? dragHandleClass so that they don't change the areaManager and let acceptTypes/dndTypes sort out which dnd area it is allowed to drop on. Doesn't really help with styling though.

Change History (3)

comment:1 Changed 8 years ago by Andrew Muraco

Likely fix is to have AreaManager? contain an array of dragHandleClasses and append to it as needed.

comment:2 Changed 7 years ago by bill

Component: GeneralDojox
Owner: set to jfcunat
Status: newassigned

comment:3 Changed 7 years ago by bill

Resolution: patchwelcome
Status: assignedclosed

The mdnd code seems abandoned. Closing ticket unless a patch is supplied.

Note: See TracTickets for help on using tickets.