起動時にホームページを表示する設定の時、タブバーが最初のタブの内容領域にはみ出てしまう問題に対処

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1509 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2007-11-06 06:24:27 +00:00
parent 8e2118646e
commit 124d34c23a
2 changed files with 13 additions and 9 deletions

View File

@ -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 {

View File

@ -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':