From ba02bdb26538438f6109f84c46b396ffba979b26 Mon Sep 17 00:00:00 2001 From: piro Date: Wed, 7 Apr 2010 01:37:58 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=BF=E3=83=96=E3=83=90=E3=83=BC=E3=82=92?= =?UTF-8?q?=E4=B8=8A=E3=81=AB=E8=A1=A8=E7=A4=BA=E3=81=99=E3=82=8B=E3=82=AA?= =?UTF-8?q?=E3=83=97=E3=82=B7=E3=83=A7=E3=83=B3=E3=81=8C=E6=84=8F=E5=91=B3?= =?UTF-8?q?=E3=82=92=E6=8C=81=E3=81=9F=E3=81=AA=E3=81=84=E6=99=82=E3=81=AF?= =?UTF-8?q?=E3=82=B3=E3=83=9E=E3=83=B3=E3=83=89=E3=82=92=E7=84=A1=E5=8A=B9?= =?UTF-8?q?=E5=8C=96?= 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@6577 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index c52650f2..1f325712 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -1112,9 +1112,12 @@ TreeStyleTabBrowser.prototype = { var b = this.mTabBrowser; var orient; + var toggleTabsOnTop = document.getElementById('cmd_ToggleTabsOnTop'); if (this.isVertical) { orient = 'vertical'; this.setTabbrowserAttribute(this.kFIXED, this.getTreePref('tabbar.fixed.vertical') ? 'true' : null); + if (toggleTabsOnTop) + toggleTabsOnTop.setAttribute('disabled', true); } else { orient = 'horizontal'; @@ -1135,10 +1138,18 @@ TreeStyleTabBrowser.prototype = { }, 0); } } + if (toggleTabsOnTop) { + if (this.currentTabbarPosition == 'top') + toggleTabsOnTop.removeAttribute('disabled'); + else + toggleTabsOnTop.setAttribute('disabled', true); + } } else { this.removeTabbrowserAttribute(this.kFIXED, b); this.setTabStripAttribute('height', this.getTreePref('tabbar.height')); + if (toggleTabsOnTop) + toggleTabsOnTop.setAttribute('disabled', true); } }