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
|
data.items ? false : null
|
||||||
)) : null,
|
)) : null,
|
||||||
padding = data.level * 16 - 8;
|
padding = data.level * 16 - 8;
|
||||||
if (data.level || !data.items) {
|
if (data.level) {
|
||||||
$('<div>')
|
$('<div>')
|
||||||
.addClass('OxCell OxTarget')
|
.addClass('OxCell OxTarget')
|
||||||
.css({width: padding + 'px'})
|
.css({width: padding + 'px'})
|
||||||
|
@ -110,7 +110,7 @@ Ox.TreeList = function(options, self) {
|
||||||
$('<div>')
|
$('<div>')
|
||||||
.addClass('OxCell OxTarget' + (!data.items ? ' OxSelectable' : ''))
|
.addClass('OxCell OxTarget' + (!data.items ? ' OxSelectable' : ''))
|
||||||
.css({
|
.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 || '')
|
.html(data.title || '')
|
||||||
.appendTo($item);
|
.appendTo($item);
|
||||||
|
|
Loading…
Reference in a new issue