collapsed last tabs were not moved on switchings of tab groups

This commit is contained in:
Piro / SHIMODA Hiroshi 2011-03-24 03:05:35 +09:00
parent 58703eaeab
commit 44b313f5e5

View File

@ -2867,9 +2867,13 @@ TreeStyleTabBrowser.prototype = {
updateTreeByTabVisibility : function TSTBrowser_updateTreeByTabVisibility(aChangedTabs) updateTreeByTabVisibility : function TSTBrowser_updateTreeByTabVisibility(aChangedTabs)
{ {
this.internallyTabMovingCount++; this.internallyTabMovingCount++;
var tabs = this.getAllTabsArray(this.mTabBrowser); var tabs = this.getAllTabsArray(this.mTabBrowser);
aChangedTabs = aChangedTabs || tabs; aChangedTabs = aChangedTabs || tabs;
var lastVisibleTab = this.getLastVisibleTab(this.mTabBrowser);
var lastVisibleTab = this.mTabBrowser.visibleTabs;
lastVisibleTab = lastVisibleTab[lastVisibleTab.length-1];
tabs.reverse().forEach(function(aTab) { tabs.reverse().forEach(function(aTab) {
var parent = this.getParentTab(aTab); var parent = this.getParentTab(aTab);
var attached = false; var attached = false;