自動でサブツリーを開く動作自体を隠し設定で無効にできるようにした
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1606 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
24bc6f157a
commit
7c2e01632d
@ -1354,7 +1354,9 @@ TreeStyleTabBrowser.prototype = {
|
||||
onDragEnter : function(aEvent, aDragSession)
|
||||
{
|
||||
var tab = aEvent.target;
|
||||
if (tab.localName != 'tab') return;
|
||||
if (tab.localName != 'tab' ||
|
||||
!this.getTreePref('autoExpand.enabled'))
|
||||
return;
|
||||
|
||||
var now = (new Date()).getTime();
|
||||
|
||||
@ -1368,7 +1370,7 @@ TreeStyleTabBrowser.prototype = {
|
||||
if (tab &&
|
||||
tab.getAttribute(aSelf.kSUBTREE_COLLAPSED) == 'true' &&
|
||||
tab.getAttribute(aSelf.kDROP_POSITION) == 'self') {
|
||||
if (aSelf.getTreePref('autoExpand.intelligently') {
|
||||
if (aSelf.getTreePref('autoExpand.intelligently')) {
|
||||
aSelf.collapseExpandTreesIntelligentlyFor(tab);
|
||||
}
|
||||
else {
|
||||
@ -1415,7 +1417,7 @@ TreeStyleTabBrowser.prototype = {
|
||||
if (tab &&
|
||||
tab.getAttribute(this.kSUBTREE_COLLAPSED) == 'true' &&
|
||||
tab.getAttribute(this.kDROP_POSITION) == 'self') {
|
||||
if (this.getTreePref('autoExpand.intelligently') {
|
||||
if (this.getTreePref('autoExpand.intelligently')) {
|
||||
this.collapseExpandTreesIntelligentlyFor(tab);
|
||||
}
|
||||
else {
|
||||
|
@ -15,6 +15,7 @@ pref("extensions.treestyletab.enableSubtreeIndent", true);
|
||||
pref("extensions.treestyletab.enableSubtreeIndent.allTabsPopup", true);
|
||||
pref("extensions.treestyletab.allowSubtreeCollapseExpand", true);
|
||||
pref("extensions.treestyletab.showBorderForFirstTab", false);
|
||||
pref("extensions.treestyletab.autoExpand.enabled", true);
|
||||
pref("extensions.treestyletab.autoExpand.delay", 500);
|
||||
pref("extensions.treestyletab.autoExpand.intelligently", true);
|
||||
pref("extensions.treestyletab.autoExpand.collapseFinally", false);
|
||||
|
@ -5,7 +5,7 @@
|
||||
<RDF:Description RDF:about="urn:mozilla:install-manifest"
|
||||
em:id="treestyletab@piro.sakura.ne.jp"
|
||||
em:name="Tree Style Tab"
|
||||
em:version="0.5.2007111702"
|
||||
em:version="0.5.2007111801"
|
||||
em:creator="SHIMODA Hiroshi"
|
||||
em:description="Show tabs like a tree."
|
||||
em:homepageURL="http://piro.sakura.ne.jp/xul/treestyletab/"
|
||||
|
Loading…
Reference in New Issue
Block a user