3.7a4preでフルスクリーンモードがおかしくなっていた

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6474 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2010-03-27 13:07:31 +00:00
parent 96e5a804ff
commit 7e7fde7227
2 changed files with 14 additions and 6 deletions

View File

@ -1083,12 +1083,21 @@ catch(e) {
// Firefox 3 full screen
eval('FullScreen._animateUp = '+
FullScreen._animateUp.toSource().replace(
'gBrowser.mStrip.boxObject.height',
'((gBrowser.getAttribute(TreeStyleTabService.kTABBAR_POSITION) != "top") ? 0 : gBrowser.mStrip.boxObject.height)'
/((?:gBrowser\.mStrip|gNavToolbox)\.boxObject\.height)/,
'((gBrowser.getAttribute(TreeStyleTabService.kTABBAR_POSITION) != "top") ? 0 : $1)'
)
);
eval('FullScreen.mouseoverToggle = '+
FullScreen.mouseoverToggle.toSource().replace(
FullScreen.mouseoverToggle.toSource().replace(
// Firefox 3.7 or later
'allFSToolbars[i].setAttribute("moz-collapsed", !aShow);',
'if (allFSToolbars[i].id != "TabsToolbar" || gBrowser.getAttribute(TreeStyleTabService.kTABBAR_POSITION) == "top") { $& }'
).replace(
// Firefox 3.7 or later
'this._isChromeCollapsed = !aShow;',
'gBrowser.treeStyleTab.updateFloatingTabbar(); $&'
).replace(
// Firefox 3.6 or older
'gBrowser.mStrip.setAttribute("moz-collapsed", !aShow);',
'if (gBrowser.getAttribute(TreeStyleTabService.kTABBAR_POSITION) == "top") { $& }'
)

View File

@ -490,12 +490,11 @@ TreeStyleTabBrowserAutoHide.prototype = {
default:
case this.kMODE_SHRINK:
if (pos == 'left' || pos == 'right') {
if (pos == 'left' || pos == 'right')
sv.setTabStripAttribute('width', this.getTreePref('tabbar.width'));
sv.updateFloatingTabbar();
}
break;
}
sv.updateFloatingTabbar();
},
onHiding : function TSTAutoHide_onHiding()