タブバーが横置き状態の時は、Twisty以外の部分をクリックしてもサブツリーを開閉しないようにした
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1580 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
b6f475c42e
commit
647a00ac43
@ -258,7 +258,7 @@ var TreeStyleTabService = {
|
|||||||
if (!tab) return false;
|
if (!tab) return false;
|
||||||
|
|
||||||
return tab.hasAttribute(this.kCHILDREN) && this.evaluateXPath(
|
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,
|
aEvent.originalTarget || aEvent.target,
|
||||||
XPathResult.FIRST_ORDERED_NODE_TYPE
|
XPathResult.FIRST_ORDERED_NODE_TYPE
|
||||||
).singleNodeValue ? true : false ;
|
).singleNodeValue ? true : false ;
|
||||||
|
Loading…
Reference in New Issue
Block a user