From 327933ecb7edd7f45d99e10fe879f000ad757b64 Mon Sep 17 00:00:00 2001 From: piro Date: Thu, 23 Jul 2009 16:49:54 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B4=97=E6=BF=AF=E3=81=95=E3=82=8C=E3=81=9F?= =?UTF-8?q?=E6=9C=80=E5=88=9D=E3=81=AE=E3=82=BF=E3=83=96=E3=81=8C=E3=81=82?= =?UTF-8?q?=E3=81=A3=E3=81=9F=E4=BD=8D=E7=BD=AE=E3=81=AB=E6=96=B0=E3=81=97?= =?UTF-8?q?=E3=81=84=E3=83=84=E3=83=AA=E3=83=BC=E3=82=92=E7=A7=BB=E5=8B=95?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= 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@4793 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index 269ef67c..43f562df 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -2274,12 +2274,22 @@ catch(e) { var parent = this.getParentTab(aTabs[0]); + var prev = aTabs[0]; + while ( + (prev = this.getNextSiblingTab(prev)) && + aTabs.indexOf(prev) > -1 + ); + window.setTimeout(function(aSelf) { aTabs.forEach(function(aTab) { b.treeStyleTab.attachTabTo(aTab, root); b.treeStyleTab.collapseExpandTab(aTab, false); }, aSelf); - if (parent) b.treeStyleTab.attachTabTo(root, parent); + if (parent) { + b.treeStyleTab.attachTabTo(root, parent, { + insertBefore : prev + }); + } }, 0, this); }, canCreateSubTree : function(aTabs)