インデント幅の設定を別メソッドに

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4065 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-04-07 14:44:39 +00:00
parent fa18f6d75a
commit 8512289c43

View File

@ -2753,12 +2753,16 @@ TreeStyleTabBrowser.prototype = {
}
}
else {
aTabs[i].setAttribute('style', aTabs[i].getAttribute('style').replace(/margin(-[^:]+):[^;]+;?/g, '')+'; '+aProp+':'+indent+'px !important;');
this.setTabMargin(aTabs[i], aProp, indent);
}
aTabs[i].setAttribute(this.kNEST, aLevel);
this.updateTabsIndent(this.getChildTabs(aTabs[i]), aLevel+1, aProp);
}
},
setTabMargin : function(aTab, aProp, aIndent)
{
aTab.setAttribute('style', aTab.getAttribute('style').replace(/margin(-[^:]+):[^;]+;?/g, '')+'; '+aProp+':'+aIndent+'px !important;');
},
updateAllTabsIndent : function()
{