From acefddccb75139cc25f2720b15ec3e01036ef8e6 Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Thu, 8 Dec 2011 04:43:51 +0900 Subject: [PATCH] set position of child tabs --- modules/browser.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/browser.js b/modules/browser.js index de1959e7..0407eddd 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -2308,19 +2308,19 @@ TreeStyleTabBrowser.prototype = { aChild = this.getTabById(aChild); if (aChild) this.attachTabTo(aChild, aTab, { - forceExpand : true, // to prevent to collapse the selected tab - dontAnimate : true, - dontMove : true + forceExpand : true, // to prevent to collapse the selected tab + dontAnimate : true, + insertBefore : this.getTabById(this.getTabValue(aChild, this.kINSERT_BEFORE)) }); }, this); this.collapseExpandSubtree(aTab, subTreeCollapsed, true); } - this.updateInsertionPositionInfo(aTab); - if (!alreadyRestored) aTab.__treestyletab__structureRestored = true; }, this); + + tabs.forEach(this.updateInsertionPositionInfo, this); }, /* DOM Event Handling */