From ddde6f0e1f934b5cd6861748a94c973acf7a6330 Mon Sep 17 00:00:00 2001 From: piro Date: Wed, 31 Mar 2010 18:47:30 +0000 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E5=B8=B8=E6=99=82=E3=81=A8=E3=83=95?= =?UTF-8?q?=E3=83=AB=E3=82=B9=E3=82=AF=E3=83=AA=E3=83=BC=E3=83=B3=E3=83=A2?= =?UTF-8?q?=E3=83=BC=E3=83=89=E3=81=A8=E3=81=A7=E3=80=81=E8=87=AA=E5=8B=95?= =?UTF-8?q?=E3=81=A7=E9=9A=A0=E3=81=99=E8=A8=AD=E5=AE=9A=E3=82=92=E5=88=A5?= =?UTF-8?q?=E3=80=85=E3=81=AB=E4=BF=9D=E6=8C=81=E3=81=99=E3=82=8B=E3=82=88?= =?UTF-8?q?=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@6540 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser_autoHide.js | 12 +++++++++--- defaults/preferences/treestyletab.js | 7 ++++--- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser_autoHide.js b/content/treestyletab/treestyletabbrowser_autoHide.js index 43c87303..1dc1f18e 100644 --- a/content/treestyletab/treestyletabbrowser_autoHide.js +++ b/content/treestyletab/treestyletabbrowser_autoHide.js @@ -1241,9 +1241,15 @@ TreeStyleTabBrowserAutoHide.__defineSetter__('mode', function(aValue) { TreeStyleTabBrowserAutoHide.mMode = TreeStyleTabBrowserAutoHide.prototype.kMODE_HIDE; TreeStyleTabBrowserAutoHide.toggleMode = function TSTAutoHide_toggleMode() { /* PUBLIC API */ - TreeStyleTabService.setTreePref('tabbar.autoHide.mode', - TreeStyleTabService.getTreePref('tabbar.autoHide.mode') == this.prototype.kMODE_DISABLED ? - TreeStyleTabService.getTreePref('tabbar.autoHide.mode.toggle') : + var key = 'tabbar.autoHide.mode'; + var toggleKey = 'tabbar.autoHide.mode.toggle'; + if (window.fullScreen) { + key += '.fullscreen'; + toggleKey += '.fullscreen'; + } + TreeStyleTabService.setTreePref(key, + TreeStyleTabService.getTreePref(key) == this.prototype.kMODE_DISABLED ? + TreeStyleTabService.getTreePref(toggleKey) : this.prototype.kMODE_DISABLED ); }; diff --git a/defaults/preferences/treestyletab.js b/defaults/preferences/treestyletab.js index adb92dc8..20cd84ef 100644 --- a/defaults/preferences/treestyletab.js +++ b/defaults/preferences/treestyletab.js @@ -18,9 +18,10 @@ pref("extensions.treestyletab.tabbar.scroll.duration", 250); // flat, mixed, vertigo pref("extensions.treestyletab.tabbar.style", "mixed"); // 0 = disabled, 1 = hide, 2 = shrink -pref("extensions.treestyletab.tabbar.autoHide.mode", 0); -pref("extensions.treestyletab.tabbar.autoHide.mode.toggle", 2); -pref("extensions.treestyletab.tabbar.autoHide.mode.fullscreen", 1); +pref("extensions.treestyletab.tabbar.autoHide.mode", 0); +pref("extensions.treestyletab.tabbar.autoHide.mode.fullscreen", 1); +pref("extensions.treestyletab.tabbar.autoHide.mode.toggle", 2); +pref("extensions.treestyletab.tabbar.autoHide.mode.toggle.fullscreen", 1); pref("extensions.treestyletab.tabbar.autoHide.delay", 50); pref("extensions.treestyletab.tabbar.autoHide.area", 7); pref("extensions.treestyletab.tabbar.autoHide.expandArea", false);