ダミーのタブを使って、強制的に内容領域をタブバーよりも上に描画させるようにした
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1511 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
705559e6c8
commit
223a8450b4
@ -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;
|
||||
}
|
||||
|
||||
tabbrowser[treestyletab-tabbar-position="left"][treestyletab-scrollbar-inverted="true"] .tabbrowser-arrowscrollbox > scrollbox > .scrollbox-innerbox {
|
||||
direction: ltr !important;
|
||||
}
|
||||
|
||||
tabbrowser[treestyletab-tabbar-position="left"][treestyletab-scrollbar-inverted="true"] .tabbrowser-tabs[treestyletab-last-focus] .tabbrowser-arrowscrollbox > scrollbox {
|
||||
/* 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
|
||||
@ -73,6 +66,10 @@ tabbrowser[treestyletab-tabbar-position="left"][treestyletab-scrollbar-inverted=
|
||||
padding-right: 1em !important;
|
||||
}
|
||||
|
||||
tabbrowser[treestyletab-tabbar-position="left"][treestyletab-scrollbar-inverted="true"] .tabbrowser-arrowscrollbox > scrollbox > .scrollbox-innerbox {
|
||||
direction: ltr !important;
|
||||
}
|
||||
|
||||
|
||||
|
||||
tabbrowser[treestyletab-mode="vertical"][treestyletab-appearance-inverted="true"] .tabbrowser-tab .tab-image-middle {
|
||||
|
@ -14,7 +14,6 @@ var TreeStyleTabService = {
|
||||
kALLOW_COLLAPSE : 'treestyletab-allow-subtree-collapse',
|
||||
kSTYLE : 'treestyletab-style',
|
||||
kFIRSTTAB_BORDER : 'treestyletab-firsttab-border',
|
||||
kLAST_FOCUS : 'treestyletab-last-focus',
|
||||
|
||||
kTWISTY : 'treestyletab-twisty',
|
||||
kTWISTY_CONTAINER : 'treestyletab-twisty-container',
|
||||
@ -753,6 +752,16 @@ catch(e) {
|
||||
delete i;
|
||||
delete maxi;
|
||||
delete tabs;
|
||||
|
||||
/* To move up content area on the tab bar, switch tab.
|
||||
If we don't do it, a gray space appears on the content area
|
||||
by negative margin of it. */
|
||||
if (this.getTreePref('tabbar.position') == 'left' &&
|
||||
this.getTreePref('tabbar.invertScrollbar')) {
|
||||
aTabBrowser.removeTab(
|
||||
aTabBrowser.selectedTab = aTabBrowser.addTab('about:blank')
|
||||
);
|
||||
}
|
||||
},
|
||||
|
||||
initTab : function(aTab, aTabBrowser)
|
||||
@ -1145,7 +1154,6 @@ catch(e) {
|
||||
return;
|
||||
|
||||
case 'select':
|
||||
aEvent.currentTarget.setAttribute(this.kLAST_FOCUS, Date.now());
|
||||
this.onTabSelect(aEvent);
|
||||
return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user