* set minimum indent width to 3px
* new secret prefs to disable auto-shrinking of indent
This commit is contained in:
parent
85f5845154
commit
07675ecebc
@ -4345,6 +4345,11 @@ TreeStyleTabBrowser.prototype = {
|
||||
checkTabsIndentOverflowTimer : null,
|
||||
checkTabsIndentOverflowCallback : function TSTBrowser_checkTabsIndentOverflowCallback()
|
||||
{
|
||||
if (!this.getTreePref('indent.autoShrink')) {
|
||||
this.indent = -1;
|
||||
return;
|
||||
}
|
||||
|
||||
var b = this.mTabBrowser;
|
||||
var tabs = this.getArrayFromXPathResult(this.evaluateXPath(
|
||||
'child::xul:tab[@'+this.kNEST+' and not(@'+this.kNEST+'="0" or @'+this.kNEST+'="")]',
|
||||
@ -4374,7 +4379,7 @@ TreeStyleTabBrowser.prototype = {
|
||||
}
|
||||
var maxIndent = maxIndentBase * (this.isVertical ? 0.33 : 0.5 );
|
||||
|
||||
var indentUnit = Math.max(Math.floor(maxIndent / nest), 1);
|
||||
var indentUnit = Math.max(Math.floor(maxIndent / nest), this.getTreePref('indent.min'));
|
||||
if (indent > maxIndent) {
|
||||
this.indent = indentUnit;
|
||||
}
|
||||
|
@ -55,7 +55,9 @@ pref("extensions.treestyletab.maxTreeLevel.horizontal", 0);
|
||||
pref("extensions.treestyletab.maxTreeLevel.vertical", 999);
|
||||
pref("extensions.treestyletab.maxTreeLevel.phisical", false);
|
||||
pref("extensions.treestyletab.indent", 12);
|
||||
pref("extensions.treestyletab.indent.min", 3);
|
||||
pref("extensions.treestyletab.indent.property", "margin");
|
||||
pref("extensions.treestyletab.indent.autoShrink", true);
|
||||
// pref("extensions.treestyletab.indent.property.top", "");
|
||||
// pref("extensions.treestyletab.indent.property.right", "");
|
||||
// pref("extensions.treestyletab.indent.property.bottom", "");
|
||||
|
Loading…
x
Reference in New Issue
Block a user