-
23 May 2013 11:55 PM #1
Ext JS 3.4.4.1: Drag & Drop broken
Ext JS 3.4.4.1: Drag & Drop broken
Ext version tested:
Ext 3.4.1.1 (Ext 3.4.0 works fine)
Browser versions tested against:
Chrome 27
FF 21
IE 9
IE 10
Description:
Drag & Drop works fine as long as all registered DropZones still exist in the DOM.
But this isn't always the case, just think of closable Ext.TabPanel or Ext.Window. So if you have a drop-target in a window or in a tab panel, and then you close the window/panel and then start a drag operation (eg. from a tree panel) it will break.
Fix:
This should do the trick:
Code:Ext.dd.DragDropMgr.getZIndex = function(element) { var body = document.body, z, zIndex = -1; var overTargetEl = element; element = Ext.getDom(element); while (element !== body) { // this fixes the problem if(!element) { this._remove(overTargetEl); // remove the drop target from the manager break; } // fix end if (!isNaN(z = Number(Ext.fly(element).getStyle('zIndex')))) { zIndex = z; } element = element.parentNode; } return zIndex; };
-
24 May 2013 4:45 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
Thanks for the report! I have opened a bug in our bug tracker.
-
11 Jun 2013 3:55 AM #3
I can confim this issue. Thanks for the fix - works well.
Tocco AG - technology meets spirit
http://www.tocco.ch
You found a bug! We've classified it as
EXTJSIII-130
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote