完全に畳まれたタブはアニメーションしない

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6662 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-05-06 17:41:25 +00:00
parent 94d4c8660f
commit 5b0f5f8dbf
2 changed files with 9 additions and 8 deletions

View File

@ -154,7 +154,7 @@ image.tab-icon {
.tabbrowser-tabs[treestyletab-animation-enabled="true"][treestyletab-mode="vertical"]:not([treestyletab-tab-inverted="true"]) .tabbrowser-tabs[treestyletab-animation-enabled="true"][treestyletab-mode="vertical"]:not([treestyletab-tab-inverted="true"])
.tabbrowser-tab { .tabbrowser-tab:not([treestyletab-collapsed-done="true"]) {
-moz-transition: margin-top 0.15s ease-out, -moz-transition: margin-top 0.15s ease-out,
opacity 0.15s ease-out, opacity 0.15s ease-out,
margin-left 0.2s ease-out; margin-left 0.2s ease-out;
@ -164,7 +164,7 @@ image.tab-icon {
} }
.tabbrowser-tabs[treestyletab-animation-enabled="true"][treestyletab-mode="vertical"][treestyletab-tab-inverted="true"] .tabbrowser-tabs[treestyletab-animation-enabled="true"][treestyletab-mode="vertical"][treestyletab-tab-inverted="true"]
.tabbrowser-tab { .tabbrowser-tab:not([treestyletab-collapsed-done="true"]) {
-moz-transition: margin-top 0.15s ease-out, -moz-transition: margin-top 0.15s ease-out,
opacity 0.15s ease-out, opacity 0.15s ease-out,
margin-right 0.2s ease-out; margin-right 0.2s ease-out;
@ -174,7 +174,7 @@ image.tab-icon {
} }
.tabbrowser-tabs[treestyletab-animation-enabled="true"]:not([treestyletab-mode="vertical"]):not([treestyletab-tab-inverted="true"]) .tabbrowser-tabs[treestyletab-animation-enabled="true"]:not([treestyletab-mode="vertical"]):not([treestyletab-tab-inverted="true"])
.tabbrowser-tab { .tabbrowser-tab:not([treestyletab-collapsed-done="true"]) {
-moz-transition: margin-left 0.15s ease-out, -moz-transition: margin-left 0.15s ease-out,
opacity 0.15s ease-out, opacity 0.15s ease-out,
margin-top 0.2s ease-out; margin-top 0.2s ease-out;
@ -184,7 +184,7 @@ image.tab-icon {
} }
.tabbrowser-tabs[treestyletab-animation-enabled="true"]:not([treestyletab-mode="vertical"])[treestyletab-tab-inverted="true"] .tabbrowser-tabs[treestyletab-animation-enabled="true"]:not([treestyletab-mode="vertical"])[treestyletab-tab-inverted="true"]
.tabbrowser-tab { .tabbrowser-tab:not([treestyletab-collapsed-done="true"]) {
-moz-transition: margin-left 0.15s ease-out, -moz-transition: margin-left 0.15s ease-out,
opacity 0.15s ease-out, opacity 0.15s ease-out,
margin-bottom 0.2s ease-out; margin-bottom 0.2s ease-out;

View File

@ -3982,6 +3982,11 @@ TreeStyleTabBrowser.prototype = {
// !this.isVertical || // !this.isVertical ||
!this.canCollapseSubtree() !this.canCollapseSubtree()
) { ) {
if (aCollapsed)
aTab.setAttribute(this.kCOLLAPSED_DONE, true);
else
aTab.removeAttribute(this.kCOLLAPSED_DONE);
aTab.setAttribute( aTab.setAttribute(
'style', 'style',
aTab.getAttribute('style') aTab.getAttribute('style')
@ -3994,10 +3999,6 @@ TreeStyleTabBrowser.prototype = {
) : ) :
'' ) '' )
); );
if (aCollapsed)
aTab.setAttribute(this.kCOLLAPSED_DONE, true);
else
aTab.removeAttribute(this.kCOLLAPSED_DONE);
return; return;
} }