diff --git a/source/Ox.UI/js/List/Ox.TreeList.js b/source/Ox.UI/js/List/Ox.TreeList.js index 737aaf77..b6e0c5f7 100644 --- a/source/Ox.UI/js/List/Ox.TreeList.js +++ b/source/Ox.UI/js/List/Ox.TreeList.js @@ -26,10 +26,10 @@ Ox.TreeList = function(options, self) { .defaults({ data: null, items: [], - max: -1, + max: 1, min: 0, selected: [], - width: 256 + width: 'auto' }) .options(options || {}); @@ -162,7 +162,8 @@ Ox.TreeList = function(options, self) { }, type = Ox.typeOf(value); if (type == 'array' || type == 'object') { - ret.title += Ox.toTitleCase(type) + ' [' + Ox.len(value) + ']'; + ret.title += Ox.toTitleCase(type) + + ' [' + Ox.len(value) + ']'; ret.items = Ox.map(Ox.sort(Ox.keys(value)), function(k) { return parseData(k, value[k]); });