タブバーをツールボックスの一番上に移動する機能(https://bugzilla.mozilla.org/show_bug.cgi?id=544815)に対応
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6575 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
7e23d99726
commit
64ac5176e5
@ -1124,6 +1124,17 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
this.removeTabStripAttribute('height');
|
this.removeTabStripAttribute('height');
|
||||||
b.mPanelContainer.removeAttribute('height');
|
b.mPanelContainer.removeAttribute('height');
|
||||||
}
|
}
|
||||||
|
// remove ordinal for "tabs on top" https://bugzilla.mozilla.org/show_bug.cgi?id=544815
|
||||||
|
if (this.isFloating && this.currentTabbarPosition == 'top') {
|
||||||
|
this.removeTabStripAttribute('ordinal');
|
||||||
|
if ('TabsOnTop' in window) {
|
||||||
|
// workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=555987
|
||||||
|
TabsOnTop.enabled = !TabsOnTop.enabled;
|
||||||
|
window.setTimeout(function() {
|
||||||
|
TabsOnTop.enabled = !TabsOnTop.enabled;
|
||||||
|
}, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.removeTabbrowserAttribute(this.kFIXED, b);
|
this.removeTabbrowserAttribute(this.kFIXED, b);
|
||||||
@ -1180,6 +1191,13 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
|
|
||||||
tabContainer.collapsed = (this.splitter && this.splitter.getAttribute('state') == 'collapsed');
|
tabContainer.collapsed = (this.splitter && this.splitter.getAttribute('state') == 'collapsed');
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
tabContainer.collapsed = false;
|
||||||
|
strip.style.top = '';
|
||||||
|
strip.style.left = '';
|
||||||
|
strip.style.width = '';
|
||||||
|
strip.style.height = '';
|
||||||
|
}
|
||||||
|
|
||||||
if (this.mTabBrowser != gBrowser)
|
if (this.mTabBrowser != gBrowser)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user