restore indent levels at first

This commit is contained in:
SHIMODA Hiroshi 2011-12-05 12:19:50 +09:00
parent 8578d23548
commit 04c9515d24

View File

@ -2348,6 +2348,8 @@ TreeStyleTabBrowser.prototype = {
this.applyTreeStructureToTabBrowser(this.mTabBrowser, treeStructure.tree);
this.updateAllTabsIndent();
this.getAllTabsArray(this.mTabBrowser)
.forEach(function(aTab, aIndex) {
this.tabsHash[this.getTabValue(aTab, this.kID)] = aTab;
@ -2365,7 +2367,6 @@ TreeStyleTabBrowser.prototype = {
aTab.removeAttribute(this.kPARENT);
aTab.removeAttribute(this.kCHILDREN);
}, this);
this.updateAllTabsIndent();
},
/* DOM Event Handling */
@ -4871,6 +4872,13 @@ TreeStyleTabBrowser.prototype = {
}
},
updateAllTabsCount : function TSTBrowser_updateAllTabsCount()
{
this.rootTabs.forEach(function(aTab) {
this.updateTabsCount(aTab, this);
}, this);
},
promoteTooDeepLevelTabs : function TSTBrowser_promoteTooDeepLevelTabs(aParent)
{
if (this.maxTreeLevel < 0 || !this.maxTreeLevelPhisical)