From 8e8147f5c0eddd0b9230eed89c2261a9f5fd75ff Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 18 Dec 2009 02:56:45 +0000 Subject: [PATCH] =?UTF-8?q?treestyletab-tabbar-autohide-state=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E3=81=AE=E5=80=A4=E3=81=A8=E3=81=97=E3=81=A6=E7=8F=BE?= =?UTF-8?q?=E5=9C=A8=E3=81=AE=E3=82=BF=E3=83=96=E3=83=90=E3=83=BC=E3=81=AE?= =?UTF-8?q?=E7=8A=B6=E6=85=8B=E3=82=92=E4=BF=9D=E6=8C=81=E3=81=99=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= 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@5545 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser_autoHide.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/content/treestyletab/treestyletabbrowser_autoHide.js b/content/treestyletab/treestyletabbrowser_autoHide.js index 68bbcf94..3fdae759 100644 --- a/content/treestyletab/treestyletabbrowser_autoHide.js +++ b/content/treestyletab/treestyletabbrowser_autoHide.js @@ -11,6 +11,11 @@ TreeStyleTabBrowserAutoHide.prototype = { kAUTOHIDE : 'treestyletab-tabbar-autohide', + kSTATE : 'treestyletab-tabbar-autohide-state', + kSTATE_HIDDEN : 'hidden', + kSTATE_EXPANDED : 'expanded', + kSTATE_SHRUNKEN : 'shrunken', + kSHOWN_BY_UNKNOWN : 0, kSHOWN_BY_SHORTCUT : 1 << 0, kSHOWN_BY_MOUSEMOVE : 1 << 1, @@ -150,6 +155,7 @@ TreeStyleTabBrowserAutoHide.prototype = { sv.container.style.margin = 0; sv.mTabBrowser.removeAttribute(this.kAUTOHIDE); + sv.mTabBrowser.removeAttribute(this.kSTATE); sv.mTabBrowser.removeAttribute(this.kTRANSPARENT); this.reallyShown = true; this.expanded = true; @@ -502,6 +508,8 @@ TreeStyleTabBrowserAutoHide.prototype = { break; } + b.setAttribute(this.kSTATE, this.kSTATE_EXPANDED); + switch (this.mode) { case this.kMODE_HIDE: @@ -530,11 +538,13 @@ TreeStyleTabBrowserAutoHide.prototype = { { case this.kMODE_HIDE: b.setAttribute(this.kAUTOHIDE, 'hidden'); + b.setAttribute(this.kSTATE, this.kSTATE_HIDDEN); break; default: case this.kMODE_SHRINK: b.setAttribute(this.kAUTOHIDE, 'show'); + b.setAttribute(this.kSTATE, this.kSTATE_SHRUNKEN); if (pos == 'left' || pos == 'right') b.mStrip.width = this.getTreePref('tabbar.shrunkenWidth'); break;