From 4119bed50c19933bff06da09511c9b6fbba83641 Mon Sep 17 00:00:00 2001 From: piro Date: Wed, 31 Mar 2010 09:34:51 +0000 Subject: [PATCH] =?UTF-8?q?AutoHide=20(=20http://www.krickelkrackel.de/aut?= =?UTF-8?q?ohide/=20)=E3=81=A8=E4=BD=B5=E7=94=A8=E3=81=97=E3=81=9F?= =?UTF-8?q?=E6=99=82=E3=81=AB=E3=80=81=E5=89=8D=E5=9B=9E=E7=B5=82=E4=BA=86?= =?UTF-8?q?=E6=99=82=E3=81=AE=E7=8A=B6=E6=85=8B=E3=81=8C=E3=83=95=E3=83=AB?= =?UTF-8?q?=E3=82=B9=E3=82=AF=E3=83=AA=E3=83=BC=E3=83=B3=E3=83=A2=E3=83=BC?= =?UTF-8?q?=E3=83=89=E3=81=A0=E3=81=A8=E3=80=81=E6=AC=A1=E5=9B=9E=E8=B5=B7?= =?UTF-8?q?=E5=8B=95=E6=99=82=E3=81=AE=E5=88=9D=E6=9C=9F=E7=8A=B6=E6=85=8B?= =?UTF-8?q?=E3=81=8C=E3=81=8A=E3=81=8B=E3=81=97=E3=81=8F=E3=81=AA=E3=82=8B?= =?UTF-8?q?=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE=E6=AD=A3?= 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@6528 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- .../treestyletab/treestyletabbrowser_autoHide.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser_autoHide.js b/content/treestyletab/treestyletabbrowser_autoHide.js index d84a4089..09db01c1 100644 --- a/content/treestyletab/treestyletabbrowser_autoHide.js +++ b/content/treestyletab/treestyletabbrowser_autoHide.js @@ -60,7 +60,9 @@ TreeStyleTabBrowserAutoHide.prototype = { this.end(); // update internal property after the appearance of the tab bar is updated. window.setTimeout(function(aSelf) { - aSelf.mode = aSelf.getTreePref('tabbar.autoHide.mode'); + aSelf.mode = window.fullScreen && aSelf.getPref('browser.fullscreen.autohide') ? + aSelf.getTreePref('tabbar.autoHide.mode.fullscreen') : + aSelf.getTreePref('tabbar.autoHide.mode') ; if (aSelf.mode != aSelf.kMODE_DISABLED) aSelf.start(); }, 0, this); @@ -74,6 +76,9 @@ TreeStyleTabBrowserAutoHide.prototype = { var sv = this.mOwner; switch (this.mode) { + case this.kMODE_DISABLED: + return 0; + case this.kMODE_HIDE: let offset = this.width + this.splitterWidth; if (sv.mTabBrowser.getAttribute(sv.kTABBAR_POSITION) == 'left') { @@ -183,8 +188,7 @@ TreeStyleTabBrowserAutoHide.prototype = { this.kMODE_DISABLED ; if (this.mode != this.kMODE_DISABLED) { this.start(); - var sv = this.mOwner; - sv.removeTabbrowserAttribute('moz-collapsed'); + this.mOwner.removeTabbrowserAttribute('moz-collapsed'); } }, @@ -503,6 +507,7 @@ TreeStyleTabBrowserAutoHide.prototype = { switch (this.mode) { + case this.kMODE_DISABLED: case this.kMODE_HIDE: break; @@ -530,6 +535,7 @@ TreeStyleTabBrowserAutoHide.prototype = { sv.container.style.margin = 0; switch (this.mode) { + case this.kMODE_DISABLED: case this.kMODE_HIDE: sv.setTabbrowserAttribute(this.kAUTOHIDE, 'hidden'); sv.setTabbrowserAttribute(this.kSTATE, this.kSTATE_HIDDEN); @@ -833,6 +839,7 @@ TreeStyleTabBrowserAutoHide.prototype = { switch (aPrefName) { case 'extensions.treestyletab.tabbar.autoHide.mode': + case 'extensions.treestyletab.tabbar.autoHide.mode.fullscreen': this.updateMode(); break;