タブバーを上に表示するオプションが意味を持たない時はコマンドを無効化
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6577 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
9f65adf634
commit
ba02bdb265
@ -1112,9 +1112,12 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
|
|
||||||
var b = this.mTabBrowser;
|
var b = this.mTabBrowser;
|
||||||
var orient;
|
var orient;
|
||||||
|
var toggleTabsOnTop = document.getElementById('cmd_ToggleTabsOnTop');
|
||||||
if (this.isVertical) {
|
if (this.isVertical) {
|
||||||
orient = 'vertical';
|
orient = 'vertical';
|
||||||
this.setTabbrowserAttribute(this.kFIXED, this.getTreePref('tabbar.fixed.vertical') ? 'true' : null);
|
this.setTabbrowserAttribute(this.kFIXED, this.getTreePref('tabbar.fixed.vertical') ? 'true' : null);
|
||||||
|
if (toggleTabsOnTop)
|
||||||
|
toggleTabsOnTop.setAttribute('disabled', true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
orient = 'horizontal';
|
orient = 'horizontal';
|
||||||
@ -1135,10 +1138,18 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
}, 0);
|
}, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (toggleTabsOnTop) {
|
||||||
|
if (this.currentTabbarPosition == 'top')
|
||||||
|
toggleTabsOnTop.removeAttribute('disabled');
|
||||||
|
else
|
||||||
|
toggleTabsOnTop.setAttribute('disabled', true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.removeTabbrowserAttribute(this.kFIXED, b);
|
this.removeTabbrowserAttribute(this.kFIXED, b);
|
||||||
this.setTabStripAttribute('height', this.getTreePref('tabbar.height'));
|
this.setTabStripAttribute('height', this.getTreePref('tabbar.height'));
|
||||||
|
if (toggleTabsOnTop)
|
||||||
|
toggleTabsOnTop.setAttribute('disabled', true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user