make leaves selectable in TreeList, fixed: 226

This commit is contained in:
j 2012-01-09 16:10:51 +05:30
parent 1db649bd61
commit 82744a14ed

View file

@ -107,7 +107,7 @@ Ox.TreeList = function(options, self) {
.appendTo($item); .appendTo($item);
} }
$('<div>') $('<div>')
.addClass('OxCell OxTarget') .addClass('OxCell OxTarget'+!data.items?' OxSelectable':'')
.css({ .css({
width: (self.options.width - padding - 32 + !data.items * 16) + 'px' width: (self.options.width - padding - 32 + !data.items * 16) + 'px'
}) })