タブバーを右に置いていて、タブが1つだけの時にタブバーを自動的に隠す設定にしている時、2つ目のタブを開いた後にタブバーが完全には表示されない問題を修正
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7234 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
87f7bdb0d2
commit
39da73c256
@ -1286,10 +1286,15 @@ TreeStyleTabBrowser.prototype = {
|
||||
},
|
||||
updateFloatingTabbarInternal : function TSTBrowser_updateFloatingTabbarInternal()
|
||||
{
|
||||
if (this.splitter.collapsed || this.splitter.getAttribute('state') != 'collapsed') {
|
||||
this._tabStripPlaceHolder.collapsed =
|
||||
this.splitter.collapsed =
|
||||
(this.getPref('browser.tabs.autoHide') && this.getTabsArray(this.mTabBrowser).length == 1);
|
||||
}
|
||||
|
||||
var strip = this.tabStrip;
|
||||
var tabContainerBox = this.getTabContainerBox(this.mTabBrowser);
|
||||
var positioned = false;
|
||||
var collapsed = !this.splitter.collapsed && this.splitter.getAttribute('state') == 'collapsed';
|
||||
var pos = this.currentTabbarPosition;
|
||||
if (pos != 'top' ||
|
||||
this.mTabBrowser.getAttribute(this.kFIXED) != 'true') {
|
||||
@ -1338,12 +1343,6 @@ TreeStyleTabBrowser.prototype = {
|
||||
this.mTabBrowser.tabContainer.removeAttribute('context');
|
||||
}
|
||||
|
||||
if (!collapsed) {
|
||||
this._tabStripPlaceHolder.collapsed =
|
||||
this.splitter.collapsed =
|
||||
(this.getPref('browser.tabs.autoHide') && this.getTabsArray(this.mTabBrowser).length == 1);
|
||||
}
|
||||
|
||||
if (this.mTabBrowser != gBrowser)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user