Expand collapsed tree when they become to "cannot be collapsed"

This commit is contained in:
SHIMODA Hiroshi 2012-02-28 21:42:37 +09:00
parent aea0595898
commit 29d033d476

View File

@ -1531,7 +1531,11 @@ TreeStyleTabBrowser.prototype = {
self.startRendering();
}).error(this.defaultDeferredErrorHandler);
this.allowSubtreeCollapseExpand = this.getTreePref('allowSubtreeCollapseExpand.'+orient) ;
var allowToCollapse = this.getTreePref('allowSubtreeCollapseExpand.'+orient);
if (this.allowSubtreeCollapseExpand && !allowToCollapse)
this.collapseExpandAllSubtree(false, false);
this.allowSubtreeCollapseExpand = allowToCollapse;
this.maxTreeLevel = this.getTreePref('maxTreeLevel.'+orient);
this.setTabbrowserAttribute(this.kALLOW_STACK, this.canStackTabs ? 'true' : null);