fix indent for rows without icon should in treelist

This commit is contained in:
j 2012-06-15 10:38:32 +02:00
parent 3b1fd5c38c
commit 0b60f45341

View file

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