From f28a4000470f761367f5aeac69e3d91a7a163ab5 Mon Sep 17 00:00:00 2001 From: piro Date: Mon, 10 Aug 2009 14:31:48 +0000 Subject: [PATCH] =?UTF-8?q?=E3=83=89=E3=83=AD=E3=83=83=E3=83=97=E3=81=97?= =?UTF-8?q?=E3=81=9F=E3=82=BF=E3=83=96=E3=81=AE=E4=B8=A6=E3=81=B3=E9=A0=86?= =?UTF-8?q?=E3=81=8C=E5=A3=8A=E3=82=8C=E3=82=8B=E5=95=8F=E9=A1=8C=E3=81=AB?= =?UTF-8?q?=E5=86=8D=E5=AF=BE=E5=87=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4924 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 058d953f..d3b83de0 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -2558,7 +2558,11 @@ TreeStyleTabBrowser.prototype = { var sourceWindow = aDraggedTab.ownerDocument.defaultView; 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); }