danikenan
20 Oct 2009, 11:10 PM
Hi,
Our application allows a user to arrange a warehouse by dragging items from one shelf into another (shelves are implemented as DataViews inside Panel). In addition, we have a hovering leftovers shelf, implemented as a hovering Ext.Window (within it, again, a Panel and a dataview).
For each panel we create a seperate DropZone. For each view we create a seperate DragZone.
It works great expect when we drop items on the leftovers window which always hovers and overlaps one or more shelves. In case of a drop on the leftovers dropzone we get 2 calls to Ext.dd.DropZone.onNodeDrop, on for the dropzone inside the leftovers window and one for the shelf below the cursor at the time of the drop.
What if worse, the order at which the two calls are made is inconsistent. Sometimes we get the call for the window first, and sometimes it is the second call.
How can I ensure that the dropzone below the leftover window does not get called when a drop is made into the floating leftovers window.
10x
Our application allows a user to arrange a warehouse by dragging items from one shelf into another (shelves are implemented as DataViews inside Panel). In addition, we have a hovering leftovers shelf, implemented as a hovering Ext.Window (within it, again, a Panel and a dataview).
For each panel we create a seperate DropZone. For each view we create a seperate DragZone.
It works great expect when we drop items on the leftovers window which always hovers and overlaps one or more shelves. In case of a drop on the leftovers dropzone we get 2 calls to Ext.dd.DropZone.onNodeDrop, on for the dropzone inside the leftovers window and one for the shelf below the cursor at the time of the drop.
What if worse, the order at which the two calls are made is inconsistent. Sometimes we get the call for the window first, and sometimes it is the second call.
How can I ensure that the dropzone below the leftover window does not get called when a drop is made into the floating leftovers window.
10x