From 68e1c0145d6c805bf85df52f4eb27f5ade4c4094 Mon Sep 17 00:00:00 2001 From: piro Date: Wed, 24 Oct 2007 17:54:40 +0000 Subject: [PATCH] =?UTF-8?q?=E3=82=BF=E3=83=96=E3=81=8C=E6=A8=AA=E7=BD=AE?= =?UTF-8?q?=E3=81=8D=E3=81=AB=E5=A4=89=E6=9B=B4=E3=81=95=E3=82=8C=E3=81=9F?= =?UTF-8?q?=E6=99=82=E3=80=81=E5=8B=95=E7=9A=84=E3=81=AB=E3=82=BF=E3=83=96?= =?UTF-8?q?=E3=81=AE=E8=A8=AD=E5=AE=9A=E3=82=92=E5=85=83=E3=81=AB=E6=88=BB?= =?UTF-8?q?=E3=81=99=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@1332 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index f9e3840e..0403af29 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -2537,6 +2537,15 @@ TreeStyleTabBrowserObserver.prototype = { switch (aData) { case 'extensions.treestyletab.tabbar.position': + if (value == 'bottom' || + (value != 'left' && value != 'right')) { + var container = this.mTabBrowser.mTabContainer; + Array.prototype.slice.call(container.childNodes).forEach(function(aTab) { + aTab.removeAttribute('align'); + aTab.maxWidth = 250; + aTab.minWidth = container.mTabMinWidth; + }); + } case 'extensions.treestyletab.tabbar.invertUI': TreeStyleTabService.initTabbar(this.mTabBrowser); TreeStyleTabService.updateAllTabsIndent(this.mTabBrowser);