View Full Version : [FIXED-695][3.0.3] Portal drag & drop bug

4 Dec 2009, 12:55 AM
There's a problem with the portal of extjs version 3.0.3 (version 2.3.0 works fine)
If you move 3 windows in a row and drag the first one to the second position, extjs will put it at the 3rd position instead of the 2nd.

9 Mar 2010, 6:51 AM
I'm currently working in ExtJS 3.1 and have this one too.

Tested it in IE8, Firefox 3.5, Safari 4.0.4 and Chrome 4.0

Also, when you have at least 2 rows or more, and pick a panel at the top of a column and place it back where it was at first (so at the top), it goes to the row below the top (so the second row). :-?

It isn't a bug which is blocking the customers, but it's still a bug.

9 Mar 2010, 7:02 AM
In Portal.js, in the notifyDrop function, change the following:

if (this.portal.fireEvent('validatedrop', dropEvent) !== false && this.portal.fireEvent('beforedrop', dropEvent) !== false) {


if (pos !== false) {
/*if(c == dd.panel.ownerCt && (c.items.items.indexOf(dd.panel) <= pos)){
c.insert(pos, dd.panel);
} else {


I really wonder what the author of this code had in mind with these lines of code? Anyway, it works this way.

22 Apr 2010, 5:27 AM
Fixed in SVN, rev 6250.