畳まれたサブツリー内のタブにフォーカスがある時に親のタブにフォーカスを移すのを、サブツリーを畳む時だけにした

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1231 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2007-10-19 02:08:15 +00:00
parent f6c034ec86
commit efd3140667

View File

@ -984,7 +984,9 @@ var TreeStyleTabService = {
var b = this.getTabBrowserFromChildren(aTab);
var p;
if (aTab == b.selectedTab && (p = this.getParentTabOf(aTab))) b.selectedTab = p;
if (aCollapse && aTab == b.selectedTab && (p = this.getParentTabOf(aTab))) {
b.selectedTab = p;
}
var isSubTreeCollapsed = (aTab.getAttribute(this.kSUBTREE_COLLAPSED) == 'true');
var tabs = this.getChildTabsOf(aTab);