Don't forget collapsed state of trees while toolbar customizing

This commit is contained in:
SHIMODA Hiroshi 2012-07-29 00:13:56 +09:00
parent eab7055b9d
commit 41a42fc106

View File

@ -2017,6 +2017,10 @@ TreeStyleTabBrowser.prototype = {
{ {
this.stopRendering(); this.stopRendering();
this._lastTreeViewEnabledBeforeDestroyed = this.treeViewEnabled;
this.treeViewEnabled = false;
this.maxTreeLevel = 0;
this._lastTabbarPositionBeforeDestroyed = this.position; this._lastTabbarPositionBeforeDestroyed = this.position;
if (this.position != 'top') { if (this.position != 'top') {
let self = this; let self = this;
@ -2030,10 +2034,7 @@ TreeStyleTabBrowser.prototype = {
); );
} }
this.maxTreeLevel = 0;
this.fixed = true; this.fixed = true;
this._lastTreeViewEnabledBeforeDestroyed = this.treeViewEnabled;
this.treeViewEnabled = false;
var tabbar = this.mTabBrowser.tabContainer; var tabbar = this.mTabBrowser.tabContainer;
tabbar.removeAttribute('width'); tabbar.removeAttribute('width');