diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index a53f52cb..fd027ee1 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -1626,6 +1626,15 @@ TreeStyleTabBrowser.prototype = { nextFocusedTab = this.getNextFocusedTab(tab); } + if (indentModifiedTabs.length) + this.updateTabsIndentWithDelay(indentModifiedTabs); + this.checkTabsIndentOverflow(); + + for (var i in backupAttributes) + { + this.setTabValue(tab, i, backupAttributes[i]); + } + if (b.selectedTab == tab) { this._focusChangedByCurrentTabRemove = true; if ( @@ -1636,15 +1645,6 @@ TreeStyleTabBrowser.prototype = { ) b.selectedTab = nextFocusedTab; } - - if (indentModifiedTabs.length) - this.updateTabsIndentWithDelay(indentModifiedTabs); - this.checkTabsIndentOverflow(); - - for (var i in backupAttributes) - { - this.setTabValue(tab, i, backupAttributes[i]); - } }, CLOSE_PARENT_BEHAVIOR_ESCALATE_FIRST : 3, CLOSE_PARENT_BEHAVIOR_ESCALATE_ALL : 0,