起動時にホームページを表示する設定の時、タブバーが最初のタブの内容領域にはみ出てしまう問題に対処
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1509 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
8e2118646e
commit
124d34c23a
@ -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 {
|
||||
|
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user