現在のタブを閉じて最初の子が新しい親になる時、ツリーが一旦畳まれてしまう問題を修正(regression)

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5212 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-10-12 11:45:28 +00:00
parent 8d57039428
commit d5a13d1182

View File

@ -1492,7 +1492,7 @@ TreeStyleTabBrowser.prototype = {
closeParentBehavior == this.CLOSE_PARENT_BEHAVIOR_ESCALATE_FIRST &&
this.getChildTabs(parentTab).length > 1
) :
closeRootBehavior == this.CLOSE_ROOT_BEHAVIOR_ESCALATE_FIRST
closeRootBehavior == this.CLOSE_ROOT_BEHAVIOR_ESCALATE_FIRST
) ?
function(aTab, aIndex) {
this.partTab(aTab, { dontUpdateIndent : true });
@ -1506,6 +1506,7 @@ TreeStyleTabBrowser.prototype = {
dontMove : true
});
}
this.deleteTabValue(aTab, this.kSUBTREE_COLLAPSED);
}
else {
this.attachTabTo(aTab, children[0], {