タブバーの縦横切り替え時にインデントが正しく更新されない場合があった

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4671 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-07-08 01:37:00 +00:00
parent 2ef2038493
commit af0637eaee

View File

@ -842,8 +842,6 @@ TreeStyleTabBrowser.prototype = {
b.mStrip.removeAttribute('height');
b.mPanelContainer.removeAttribute('height');
this.updateTabbarState();
if (pos == this.kTABBAR_RIGHT) {
b.setAttribute(this.kTABBAR_POSITION, 'right');
if (this.getTreePref('tabbar.invertTab')) {
@ -917,8 +915,6 @@ TreeStyleTabBrowser.prototype = {
b.setAttribute(this.kMODE, this.getTreePref('tabbar.multirow') ? 'multirow' : 'horizontal' );
b.removeAttribute(this.kTAB_INVERTED);
this.updateTabbarState();
if (pos == this.kTABBAR_BOTTOM) {
b.setAttribute(this.kTABBAR_POSITION, 'bottom');
this.indentProp = this.getTreePref('indent.property.bottom');
@ -947,6 +943,10 @@ TreeStyleTabBrowser.prototype = {
this.updateTabCollapsed(aTab, aTab.getAttribute(this.kCOLLAPSED) == 'true', true);
}, this);
window.setTimeout(function(aSelf) {
aSelf.updateTabbarState();
}, 0, this);
b = null;
pos = null;
splitter = null;