ダミーのタブを使って、強制的に内容領域をタブバーよりも上に描画させるようにした

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1511 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2007-11-06 08:19:04 +00:00
parent 705559e6c8
commit 223a8450b4
2 changed files with 14 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;
}
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 {

View File

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