タブバーが横置き状態の時は、Twisty以外の部分をクリックしてもサブツリーを開閉しないようにした

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1580 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2007-11-14 12:34:36 +00:00
parent b6f475c42e
commit 647a00ac43

View File

@ -258,7 +258,7 @@ var TreeStyleTabService = {
if (!tab) return false;
return tab.hasAttribute(this.kCHILDREN) && this.evaluateXPath(
'ancestor-or-self::*[@class="'+this.kTWISTY+'" or @class="tab-icon"]',
'ancestor-or-self::*[@class="'+this.kTWISTY+'" or (ancestor::xul:tabbrowser[@'+this.kMODE+'="vertical"] and @class="tab-icon")]',
aEvent.originalTarget || aEvent.target,
XPathResult.FIRST_ORDERED_NODE_TYPE
).singleNodeValue ? true : false ;