インデント幅の設定を別メソッドに
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4065 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
fa18f6d75a
commit
8512289c43
@ -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()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user