fix a bug in tree list

This commit is contained in:
rolux 2012-07-02 18:24:30 +02:00
parent 6cd9472b7c
commit 0d53dfaf1a

View file

@ -93,7 +93,9 @@ Ox.TreeList = function(options, self) {
function constructItem(data) { function constructItem(data) {
var $item = $('<div>').css({ var $item = $('<div>').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 = $('<div>').addClass('OxCell').css({width: '8px'}), $cell = $('<div>').addClass('OxCell').css({width: '8px'}),
$icon = data.id ? getIcon(data.id, data.expanded || ( $icon = data.id ? getIcon(data.id, data.expanded || (