Hello,
I am completing a drag and drop operation and it seems that when the container is rendered in its new spot after several drag and drop attempts, i get the following error...

"Too Much Recursion".

The following is the error and stack trace...

InternalError

columnNumber: 1199194

fileName: "http://localhost:4000/eVision/extjs/ext-all-js/ext.axd?v=4.5.1"

lineNumber: 20

message: "too much recursion"

stack: "[email protected]://localhost:4000/eVision/extjs/ext-all-js/ext.axd?v=4.5.1:20:1199194\[email protected]://localhost:4000/eVision/extjs/ext-all-js/ext.axd?v=4.5.1:20:1552534\[email protected]://localhost:4000/eVision/extjs/ext-all-js/ext.axd?v=4.5.1:20:1199209\[email protected]://localhost:4000/eVision/extjs/ext-all-js/ext.axd?v=4.5.1:20:1552534\[email protected]://localhost:4000/eVision/extjs/ext-all-js/ext.axd?v=4.5.1:20:1199209\[email protected]://localhost:4000/eVision/extjs/ext-all-js/ext.axd?v=4.5.1:20:1552534\[email protected]://localhost:4000/eVision/extjs/ext-all-js/ext.axd?v=4.5.1:20:1199209\[email protected]://localhost:4000/eVision/extjs/ext-all-js/ext.axd?v=4.5.1:20:1552534\[email protected]://localhost:4000/eVision/extjs/ext-all-js/ext.axd?v=4.5.1:20:1199209\[email protected]://localhost:4000/eVision/extjs/ext-all-js/ext.axd?v=4.5.1:20:1552534\[email protected]://localhost:4000/eVision/extjs/ext-all-js/ext.axd?v=4.5.1:20:1199209\[email protected]://localhost:4000/eVision/extjs/ext-al…"


The following is the extjs block of code where the error occurs...

Code:
    getRefItems: function (g)
    {
        var f = this,
            d = f.items.items,
            e = d.length,
            c = 0,
            b, a = [];
        for (; c < e; c++)
        {
            b = d[c];
            a[a.length] = b;
            if (g && b.getRefItems)
            {
                a.push.apply(a, b.getRefItems(!0))
            }
        }
        if (f.floatingItems)
        {
            d = f.floatingItems.items;
            e = d.length;
            for (c = 0; c < e; c++)
            {
                b = d[c];
                a[a.length] = b;
                if (g && b.getRefItems)
                {
                    a.push.apply(a, b.getRefItems(!0))
                }
            }
        }
        return a
    },
I am dragging around a FieldSet and this is my code where the error occurs...

Code:
this.DoCanvasDrop = function (source, target, data, x, y)
{
    try
    {
        if (!source)
        {
            window.alert("DoCanvasDrop - source not defined.");
        }


        if (!target)
        {
            window.alert("DoCanvasDrop - target not defined.");
        }


        console.log("DoCanvasDrop");


        // debugger;


        x = x.RoundToNearestIncrement
            (Core.CanvasGridScale);


        y = y.RoundToNearestIncrement
            (Core.CanvasGridScale);


        var oCurrentContainer
            = source.ownerCt;


        var oItem
            = data.sourceEl;


        var bIsSameContainer
            = target.id === oCurrentContainer.id


        if (bIsSameContainer)
        {
            source.setPosition(x, y);
        }
        else
        {
            target.add(source);


            source.setPosition(x, y);


            target.updateLayout();
        }


        source.updateLayout();




        //Ext.defer(function ()
        //{
        //    if (!bIsSameContainer)
        //    {
        //        target.updateLayout();
        //    }


        //    source.updateLayout();
        //}, 1);    // deferred 1 millisecond


        Core.Designer.DragDrop.DoCanvasDropDirectEvent
            (source, target, data, x, y);
    }
    catch (e)
    {
        debugger;


        window.alert("DoCanvasDrop - " + e.message);
    }
}