less access to oriental pref

This commit is contained in:
SHIMODA Hiroshi 2010-11-19 14:07:19 +09:00
parent ae80131b61
commit 8d82e02491

View File

@ -2739,6 +2739,7 @@ TreeStyleTabBrowser.prototype = {
if (parent.getAttribute(this.kCHILDREN_RESTORING)) if (parent.getAttribute(this.kCHILDREN_RESTORING))
this.correctChildTabsOrderWithDelay(parent); this.correctChildTabsOrderWithDelay(parent);
} }
else { else {
this.deleteTabValue(tab, this.kPARENT); this.deleteTabValue(tab, this.kPARENT);
@ -3809,8 +3810,7 @@ TreeStyleTabBrowser.prototype = {
{ {
this._treeViewEnabled = aValue ? true : false ; this._treeViewEnabled = aValue ? true : false ;
if (this._treeViewEnabled) { if (this._treeViewEnabled) {
let orient = this.isVertical ? 'vertical' : 'horizontal' ; if (this.allowSubtreeCollapseExpand)
if (this.getTreePref('allowSubtreeCollapseExpand.'+orient))
this.setTabbrowserAttribute(this.kALLOW_COLLAPSE, true); this.setTabbrowserAttribute(this.kALLOW_COLLAPSE, true);
this.updateTabsIndent(this.rootTabs, undefined, true); this.updateTabsIndent(this.rootTabs, undefined, true);
} }