タブバーの位置を変更した後の表示崩れを修正

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4069 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-04-07 17:19:30 +00:00
parent 7ae6710d21
commit 38afdda803

View File

@ -888,6 +888,10 @@ TreeStyleTabBrowser.prototype = {
}, 0); }, 0);
} }
} }
this.getTabsArray(b).forEach(function(aTab) {
this.updateTabCollapsed(aTab, aTab.getAttribute(this.kCOLLAPSED) == 'true', true);
}, this);
}, },
destroy : function() destroy : function()
@ -3031,12 +3035,16 @@ TreeStyleTabBrowser.prototype = {
this.collapseExpandTab(tabs[i], aCollapse); this.collapseExpandTab(tabs[i], aCollapse);
} }
}, },
updateTabCollapsed : function(aTab, aCollapsed) updateTabCollapsed : function(aTab, aCollapsed, aJustNow)
{ {
this.stopTabCollapseAnimation(aTab); this.stopTabCollapseAnimation(aTab);
var regexp = this.collapseRulesRegExp; var regexp = this.collapseRulesRegExp;
if (!this.isVertical || !this.animationEnabled) { if (
!this.isVertical ||
!this.animationEnabled ||
aJustNow
) {
aTab.setAttribute( aTab.setAttribute(
'style', 'style',
aTab.getAttribute('style') aTab.getAttribute('style')