ドロップしたタブの並び順が壊れる問題に再対処

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4924 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-08-10 14:31:48 +00:00
parent 305eb6d790
commit f28a400047

View File

@ -2558,7 +2558,11 @@ TreeStyleTabBrowser.prototype = {
var sourceWindow = aDraggedTab.ownerDocument.defaultView; var sourceWindow = aDraggedTab.ownerDocument.defaultView;
var sourceBrowser = this.getTabBrowserFromChild(aDraggedTab); var sourceBrowser = this.getTabBrowserFromChild(aDraggedTab);
while (aInfo.insertBefore && draggedTabs.indexOf(aInfo.insertBefore) > -1) var draggedWholeTree = [].concat(draggedRoots);
draggedRoots.forEach(function(aRoot) {
draggedWholeTree = draggedWholeTree.concat(this.getDescendantTabs(aRoot));
}, this);
while (aInfo.insertBefore && draggedWholeTree.indexOf(aInfo.insertBefore) > -1)
{ {
aInfo.insertBefore = this.getNextTab(aInfo.insertBefore); aInfo.insertBefore = this.getNextTab(aInfo.insertBefore);
} }