From 124d34c23ac4c35a288fe45c7c645b48b17e88fe Mon Sep 17 00:00:00 2001 From: piro Date: Tue, 6 Nov 2007 06:24:27 +0000 Subject: [PATCH] =?UTF-8?q?=E8=B5=B7=E5=8B=95=E6=99=82=E3=81=AB=E3=83=9B?= =?UTF-8?q?=E3=83=BC=E3=83=A0=E3=83=9A=E3=83=BC=E3=82=B8=E3=82=92=E8=A1=A8?= =?UTF-8?q?=E7=A4=BA=E3=81=99=E3=82=8B=E8=A8=AD=E5=AE=9A=E3=81=AE=E6=99=82?= =?UTF-8?q?=E3=80=81=E3=82=BF=E3=83=96=E3=83=90=E3=83=BC=E3=81=8C=E6=9C=80?= =?UTF-8?q?=E5=88=9D=E3=81=AE=E3=82=BF=E3=83=96=E3=81=AE=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E9=A0=98=E5=9F=9F=E3=81=AB=E3=81=AF=E3=81=BF=E5=87=BA=E3=81=A6?= =?UTF-8?q?=E3=81=97=E3=81=BE=E3=81=86=E5=95=8F=E9=A1=8C=E3=81=AB=E5=AF=BE?= =?UTF-8?q?=E5=87=A6?= 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@1509 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletab.css | 7 ------- content/treestyletab/treestyletab.js | 15 +++++++++++++-- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/content/treestyletab/treestyletab.css b/content/treestyletab/treestyletab.css index 2e467613..54020fe1 100644 --- a/content/treestyletab/treestyletab.css +++ b/content/treestyletab/treestyletab.css @@ -57,13 +57,6 @@ tabbrowser[treestyletab-mode="vertical"] .tabbrowser-arrowscrollbox > scrollbox tabbrowser[treestyletab-tabbar-position="left"][treestyletab-scrollbar-inverted="true"] .tabbrowser-arrowscrollbox > scrollbox { direction: rtl !important; - /* if there is scrollbar, closeboxes of tabs cannot be clicked because - they are "under the rightside scrollbar" even if it is moved to - leftside by the above rule. This seems a bug. Following rules move - the "hidden rightside scrollbar" out of the box, then we can click - closeboxes again. */ - margin-right: -1em !important; - padding-right: 1em !important; } tabbrowser[treestyletab-tabbar-position="left"][treestyletab-scrollbar-inverted="true"] .tabbrowser-arrowscrollbox > scrollbox > .scrollbox-innerbox { diff --git a/content/treestyletab/treestyletab.js b/content/treestyletab/treestyletab.js index 99cdf507..36853ca5 100644 --- a/content/treestyletab/treestyletab.js +++ b/content/treestyletab/treestyletab.js @@ -2836,10 +2836,21 @@ TreeStyleTabBrowserObserver.prototype = { case 'extensions.treestyletab.tabbar.invertScrollbar': if (value && - TreeStyleTabService.getTreePref('tabbar.position') == 'left') + TreeStyleTabService.getTreePref('tabbar.position') == 'left') { this.mTabBrowser.setAttribute(TreeStyleTabService.kSCROLLBAR_INVERTED, true); - else +/* if there is scrollbar, closeboxes of tabs cannot be clicked because + they are "under the rightside scrollbar" even if it is moved to + leftside by the above rule. This seems a bug. Following rules move + the "hidden rightside scrollbar" out of the box, then we can click + closeboxes again. */ + this.mTabBrowser.mTabContainer.mTabstrip._scrollbox.marginRight = '-1em'; + this.mTabBrowser.mTabContainer.mTabstrip._scrollbox.paddingRight = '1em'; + } + else { this.mTabBrowser.removeAttribute(TreeStyleTabService.kSCROLLBAR_INVERTED); + this.mTabBrowser.mTabContainer.mTabstrip._scrollbox.marginRight = + this.mTabBrowser.mTabContainer.mTabstrip._scrollbox.paddingRight = '0'; + } break; case 'extensions.treestyletab.allowSubtreeCollapseExpand':