From 0d53dfaf1ad89545f9f4fb003af720d56067f02d Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 2 Jul 2012 18:24:30 +0200 Subject: [PATCH] fix a bug in tree list --- source/Ox.UI/js/List/TreeList.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/List/TreeList.js b/source/Ox.UI/js/List/TreeList.js index 22825b61..5fd51b62 100644 --- a/source/Ox.UI/js/List/TreeList.js +++ b/source/Ox.UI/js/List/TreeList.js @@ -93,7 +93,9 @@ Ox.TreeList = function(options, self) { function constructItem(data) { var $item = $('
').css({ - width: self.options.width - Ox.UI.SCROLLBAR_SIZE + 'px' + width: self.options.width == 'auto' + ? '100%' + : self.options.width - Ox.UI.SCROLLBAR_SIZE + 'px' }), $cell = $('
').addClass('OxCell').css({width: '8px'}), $icon = data.id ? getIcon(data.id, data.expanded || (