always collapse/expand tabs with animation, if animation effect is allowed

This commit is contained in:
SHIMODA Hiroshi 2010-12-01 18:09:07 +09:00
parent 31fb56fd03
commit 79dc211f82

View File

@ -4602,9 +4602,9 @@ TreeStyleTabBrowser.prototype = {
if ( if (
!this.animationEnabled || !this.animationEnabled ||
aJustNow || aJustNow ||
this.collapseDuration < 1 || this.collapseDuration < 1 // ||
// !this.isVertical || // !this.isVertical ||
!this.canCollapseSubtree(this.getParentTab(aTab)) // !this.canCollapseSubtree(this.getParentTab(aTab))
) { ) {
if (aCollapsed) if (aCollapsed)
aTab.setAttribute(this.kCOLLAPSED_DONE, true); aTab.setAttribute(this.kCOLLAPSED_DONE, true);