fix TreeList rows with no icon, fixes #843

This commit is contained in:
j 2012-06-15 10:31:38 +02:00
parent 37ee99f884
commit 3b1fd5c38c

View file

@ -110,7 +110,7 @@ Ox.TreeList = function(options, self) {
$('<div>')
.addClass('OxCell OxTarget' + (!data.items ? ' OxSelectable' : ''))
.css({
width: self.options.width - padding - 32 - Ox.UI.SCROLLBAR_SIZE + 'px'
width: self.options.width - padding - ($icon ? 0 : 16) - 32 - Ox.UI.SCROLLBAR_SIZE + 'px'
})
.html(data.title || '')
.appendTo($item);