展開されているツリーの間でのタブの移動では、ツリーを自動的には閉じないようにした

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@5148 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-09-29 13:18:36 +00:00
parent c322e4ac68
commit c5e81d81a7

View File

@ -2703,10 +2703,12 @@ TreeStyleTabBrowser.prototype = {
if (!aInfo.dontExpand) {
if (this.getTreePref('autoCollapseExpandSubTreeOnSelect')) {
this.collapseExpandTreesIntelligentlyFor(aParent);
if (aParent.getAttribute(this.kSUBTREE_COLLAPSED) == 'true')
this.collapseExpandTreesIntelligentlyFor(aParent);
var p = aParent;
do {
this.collapseExpandSubtree(p, false, aInfo.dontAnimate);
if (p.getAttribute(this.kSUBTREE_COLLAPSED) == 'true')
this.collapseExpandSubtree(p, false, aInfo.dontAnimate);
}
while (p = this.getParentTab(p));
}
@ -2714,7 +2716,8 @@ TreeStyleTabBrowser.prototype = {
if (this.getTreePref('autoExpandSubTreeOnAppendChild')) {
var p = aParent;
do {
this.collapseExpandSubtree(p, false, aInfo.dontAnimate);
if (p.getAttribute(this.kSUBTREE_COLLAPSED) == 'true')
this.collapseExpandSubtree(p, false, aInfo.dontAnimate);
}
while (p = this.getParentTab(p));
}