Firefox 3とTab Mix Plusの組み合わせで正しく動作しない問題について改善

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1963 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2008-03-02 17:34:39 +00:00
parent d72fc23ea7
commit b13ba8986a
4 changed files with 19 additions and 9 deletions

View File

@ -383,12 +383,15 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function() {
)
);
eval('window.setMultibarAttribute = '+
window.setMultibarAttribute.toSource().replace(
/tabBar.lastChild/g,
'TreeStyleTabService.getLastVisibleTab($&)'
)
);
'setMultibarAttribute getMultiRowAttribute tabxTabClosed'.split(' ').forEach(function(aFunc) {
if (aFunc in window)
eval('window.'+aFunc+' = '+
window[aFunc].toSource().replace(
/(tabBar.lastChild)/g,
'TreeStyleTabService.getLastVisibleTab($1)'
)
);
});
eval('window.getRowHeight = '+
window.getRowHeight.toSource().replace(

View File

@ -50,7 +50,8 @@ tabbrowser[treestyletab-mode="vertical"] tabs[flowing] > * .tabs-frame /* Tab Mi
overflow-y: auto !important;
}
tabbrowser[treestyletab-mode="vertical"] .tabs-stack > * + * > hbox {
tabbrowser[treestyletab-mode="vertical"] .tabs-stack > * + * > hbox,
tabbrowser[treestyletab-mode="vertical"] tabs[flowing] > * .tabs-frame /* Tab Mix Plus */ {
-moz-box-flex: 1 !important;
}

View File

@ -537,8 +537,10 @@ TreeStyleTabBrowser.prototype = {
ref.parentNode.insertBefore(splitter, ref);
}
var scrollInnerBox = document.getAnonymousNodes(b.mTabContainer.mTabstrip._scrollbox)[0];
var allTabsButton = document.getAnonymousElementByAttribute(b.mTabContainer, 'class', 'tabs-alltabs-button');
var scrollInnerBox = b.mTabContainer.mTabstrip._scrollbox ? document.getAnonymousNodes(b.mTabContainer.mTabstrip._scrollbox)[0] :
document.getAnonymousElementByAttribute(b.mTabContainer, 'class', 'tabs-frame'); // Tab Mix Plus
var allTabsButton = document.getAnonymousElementByAttribute(b.mTabContainer, 'class', 'tabs-alltabs-button') ||
document.getAnonymousElementByAttribute(b.mTabContainer, 'anonid', 'alltabs-button'); // Tab Mix Plus
// Tab Mix Plus
var scrollFrame = document.getAnonymousElementByAttribute(b.mTabContainer, 'id', 'scroll-tabs-frame') ||

View File

@ -121,6 +121,10 @@ tabbrowser[treestyletab-mode="vertical"] .tabbrowser-tab[selected="true"] {
-moz-border-right-colors: ThreeDLightShadow ThreeDHighlight !important;
}
tabbrowser[treestyletab-mode="vertical"] .tabbrowser-tab .tab-close-button {
margin-right: 0 !important;
}
tabbrowser[treestyletab-tabbar-position="bottom"] .tabbrowser-tab,
tabbrowser[treestyletab-tabbar-position="bottom"] .tabbrowser-tab:not([selected="true"]) {
border-right: 2px solid !important;