From 41a42fc106d29a5bc2522cd60d24d5ce42b9338d Mon Sep 17 00:00:00 2001 From: SHIMODA Hiroshi Date: Sun, 29 Jul 2012 00:13:56 +0900 Subject: [PATCH] Don't forget collapsed state of trees while toolbar customizing --- modules/browser.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/browser.js b/modules/browser.js index 03303732..f8129bbc 100644 --- a/modules/browser.js +++ b/modules/browser.js @@ -2017,6 +2017,10 @@ TreeStyleTabBrowser.prototype = { { this.stopRendering(); + this._lastTreeViewEnabledBeforeDestroyed = this.treeViewEnabled; + this.treeViewEnabled = false; + this.maxTreeLevel = 0; + this._lastTabbarPositionBeforeDestroyed = this.position; if (this.position != 'top') { let self = this; @@ -2030,10 +2034,7 @@ TreeStyleTabBrowser.prototype = { ); } - this.maxTreeLevel = 0; this.fixed = true; - this._lastTreeViewEnabledBeforeDestroyed = this.treeViewEnabled; - this.treeViewEnabled = false; var tabbar = this.mTabBrowser.tabContainer; tabbar.removeAttribute('width');