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.
  1. #1
    Sencha User
    Join Date
    Jan 2008
    Posts
    7
    Vote Rating
    0
    berniesaurus is on a distinguished road

      0  

    Default 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;
    };

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,121
    Vote Rating
    453
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha User
    Join Date
    Jun 2008
    Posts
    68
    Vote Rating
    0
    uwolfer is on a distinguished road

      0  

    Default


    I can confim this issue. Thanks for the fix - works well.
    Tocco AG - technology meets spirit
    http://www.tocco.ch