Expand all tree internally, after the status is changed from "cannot collapse" to "can collapse"
This commit is contained in:
parent
29d033d476
commit
018cee82b7
@ -1532,10 +1532,14 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
}).error(this.defaultDeferredErrorHandler);
|
}).error(this.defaultDeferredErrorHandler);
|
||||||
|
|
||||||
var allowToCollapse = this.getTreePref('allowSubtreeCollapseExpand.'+orient);
|
var allowToCollapse = this.getTreePref('allowSubtreeCollapseExpand.'+orient);
|
||||||
if (this.allowSubtreeCollapseExpand && !allowToCollapse)
|
var canCollapseStateChanged = this.allowSubtreeCollapseExpand != allowToCollapse;
|
||||||
|
|
||||||
|
if (!allowToCollapse && canCollapseStateChanged)
|
||||||
|
this.collapseExpandAllSubtree(false, false);
|
||||||
|
this.allowSubtreeCollapseExpand = allowToCollapse;
|
||||||
|
if (allowToCollapse && canCollapseStateChanged)
|
||||||
this.collapseExpandAllSubtree(false, false);
|
this.collapseExpandAllSubtree(false, false);
|
||||||
|
|
||||||
this.allowSubtreeCollapseExpand = allowToCollapse;
|
|
||||||
this.maxTreeLevel = this.getTreePref('maxTreeLevel.'+orient);
|
this.maxTreeLevel = this.getTreePref('maxTreeLevel.'+orient);
|
||||||
|
|
||||||
this.setTabbrowserAttribute(this.kALLOW_STACK, this.canStackTabs ? 'true' : null);
|
this.setTabbrowserAttribute(this.kALLOW_STACK, this.canStackTabs ? 'true' : null);
|
||||||
|
Loading…
Reference in New Issue
Block a user