旧版の挙動に戻せるようにした

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@2702 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2008-06-20 06:16:22 +00:00
parent 2be991fbb5
commit 1832d3c608
2 changed files with 9 additions and 4 deletions

View File

@ -93,7 +93,8 @@ TreeStyleTabService.overrideExtensionsOnInitBefore = function() {
flst.tb = gBrowser;
flst.tabBox = flst.tb.mTabBox;
}
if ('ensureTabIsVisible' in gBrowser.mTabContainer) {
if ('isTabVisible' in gBrowser.mTabContainer &&
'ensureTabIsVisible' in gBrowser.mTabContainer) {
function replaceHorizontalProps(aString)
{
return aString.replace(
@ -110,15 +111,16 @@ TreeStyleTabService.overrideExtensionsOnInitBefore = function() {
]]>
)
}
eval('gBrowser.mTabContainer.isTabVisible = '+
replaceHorizontalProps(gBrowser.mTabContainer.isTabVisible.toSource())
);
eval('gBrowser.mTabContainer.ensureTabIsVisible = '+
replaceHorizontalProps(gBrowser.mTabContainer.ensureTabIsVisible.toSource().replace(
'tabhbox.boxObject.width < 250',
'$& && !gBrowser.treeStyleTab.isVertical'
))
);
if (!this.getTreePref('TMP.doNotUpdate.isTabVisible'))
eval('gBrowser.mTabContainer.isTabVisible = '+
replaceHorizontalProps(gBrowser.mTabContainer.isTabVisible.toSource())
);
}
};

View File

@ -74,5 +74,8 @@ pref("browser.tabs.loadFolderAndReplace.override", false);
pref("extensions.multipletab.show.multipletab-selection-item-removeTabSubTree", true);
pref("extensions.treestyletab.TMP.doNotUpdate.isTabVisible", false);
pref("extensions.treestyletab@piro.sakura.ne.jp.name", "chrome://treestyletab/locale/treestyletab.properties");
pref("extensions.treestyletab@piro.sakura.ne.jp.description", "chrome://treestyletab/locale/treestyletab.properties");