From 0ab550e895f688e0abbb4f2f74b51b50c27c6570 Mon Sep 17 00:00:00 2001 From: piro Date: Wed, 24 Mar 2010 18:36:54 +0000 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8B=95=E3=81=A7=E9=9A=A0=E3=81=99?= =?UTF-8?q?=E6=A9=9F=E8=83=BD=E3=81=8C=E5=83=8D=E3=81=84=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=81=AA=E3=81=8B=E3=81=A3=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@6434 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- .../treestyletab/treestyletabbrowser_autoHide.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser_autoHide.js b/content/treestyletab/treestyletabbrowser_autoHide.js index 50067fbc..0241a594 100644 --- a/content/treestyletab/treestyletabbrowser_autoHide.js +++ b/content/treestyletab/treestyletabbrowser_autoHide.js @@ -423,6 +423,7 @@ TreeStyleTabBrowserAutoHide.prototype = { window.setTimeout(function(aSelf) { if (aSelf.expanded) { + sv.setTabbarAttribute(aSelf.kAUTOHIDE, 'show', sv.mTabBrowser); sv.mTabBrowser.setAttribute(aSelf.kAUTOHIDE, 'show'); aSelf.redrawContentArea(); } @@ -470,6 +471,7 @@ TreeStyleTabBrowserAutoHide.prototype = { break; } + sv.setTabbarAttribute(this.kSTATE, this.kSTATE_EXPANDED, b); b.setAttribute(this.kSTATE, this.kSTATE_EXPANDED); switch (this.mode) @@ -499,13 +501,17 @@ TreeStyleTabBrowserAutoHide.prototype = { switch (this.mode) { case this.kMODE_HIDE: + sv.setTabbarAttribute(this.kAUTOHIDE, 'hidden', b); b.setAttribute(this.kAUTOHIDE, 'hidden'); + sv.setTabbarAttribute(this.kSTATE, this.kSTATE_HIDDEN, b); b.setAttribute(this.kSTATE, this.kSTATE_HIDDEN); break; default: case this.kMODE_SHRINK: + sv.setTabbarAttribute(this.kAUTOHIDE, 'show', b); b.setAttribute(this.kAUTOHIDE, 'show'); + sv.setTabbarAttribute(this.kSTATE, this.kSTATE_SHRUNKEN, b); b.setAttribute(this.kSTATE, this.kSTATE_SHRUNKEN); if (pos == 'left' || pos == 'right') sv.tabStrip.width = this.getTreePref('tabbar.shrunkenWidth'); @@ -748,10 +754,14 @@ TreeStyleTabBrowserAutoHide.prototype = { ]; if (pos != 'top' && this.mode != this.kMODE_DISABLED && - style != this.kTRANSPARENT_STYLE[this.kTRANSPARENT_NONE]) - b.setAttribute(this.kTRANSPARENT, style); - else + style != this.kTRANSPARENT_STYLE[this.kTRANSPARENT_NONE]) { + sv.setTabbarAttribute(this.kTRANSPARENT, this.style, b); + b.setAttribute(this.kTRANSPARENT, this.style); + } + else { + sv.setTabbarAttribute(this.kTRANSPARENT, null, b); b.removeAttribute(this.kTRANSPARENT); + } }, // event handling