TreeList: cosmetic changes

This commit is contained in:
rlx 2014-09-22 16:05:30 +02:00
parent 498c5effa2
commit 9eed905ff8

View file

@ -93,8 +93,7 @@ Ox.TreeList = function(options, self) {
function constructItem(data) { function constructItem(data) {
var $item = $('<div>').css({ var $item = $('<div>').css({
width: self.options.width == 'auto' width: self.options.width == 'auto' ? '100%'
? '100%'
: self.options.width - Ox.UI.SCROLLBAR_SIZE + 'px' : self.options.width - Ox.UI.SCROLLBAR_SIZE + 'px'
}), }),
$cell = $('<div>').addClass('OxCell').css({width: '8px'}), $cell = $('<div>').addClass('OxCell').css({width: '8px'}),