fix indent for rows without icon should in treelist
This commit is contained in:
parent
3b1fd5c38c
commit
0b60f45341
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue