From 5b0f5f8dbfff8fe4e6711c2ed815f244c7099779 Mon Sep 17 00:00:00 2001 From: piro Date: Thu, 6 May 2010 17:41:25 +0000 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=85=A8=E3=81=AB=E7=95=B3=E3=81=BE?= =?UTF-8?q?=E3=82=8C=E3=81=9F=E3=82=BF=E3=83=96=E3=81=AF=E3=82=A2=E3=83=8B?= =?UTF-8?q?=E3=83=A1=E3=83=BC=E3=82=B7=E3=83=A7=E3=83=B3=E3=81=97=E3=81=AA?= =?UTF-8?q?=E3=81=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6662 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.css | 8 ++++---- content/treestyletab/treestyletabbrowser.js | 9 +++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/content/treestyletab/treestyletab.css b/content/treestyletab/treestyletab.css index be2face9..8d484c08 100644 --- a/content/treestyletab/treestyletab.css +++ b/content/treestyletab/treestyletab.css @@ -154,7 +154,7 @@ image.tab-icon { .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, opacity 0.15s 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-tab { + .tabbrowser-tab:not([treestyletab-collapsed-done="true"]) { -moz-transition: margin-top 0.15s ease-out, opacity 0.15s 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-tab { + .tabbrowser-tab:not([treestyletab-collapsed-done="true"]) { -moz-transition: margin-left 0.15s ease-out, opacity 0.15s 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-tab { + .tabbrowser-tab:not([treestyletab-collapsed-done="true"]) { -moz-transition: margin-left 0.15s ease-out, opacity 0.15s ease-out, margin-bottom 0.2s ease-out; diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 02262374..ce116c37 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -3982,6 +3982,11 @@ TreeStyleTabBrowser.prototype = { // !this.isVertical || !this.canCollapseSubtree() ) { + if (aCollapsed) + aTab.setAttribute(this.kCOLLAPSED_DONE, true); + else + aTab.removeAttribute(this.kCOLLAPSED_DONE); + aTab.setAttribute( '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; }