fix a bug in tree list
This commit is contained in:
parent
6cd9472b7c
commit
0d53dfaf1a
1 changed files with 3 additions and 1 deletions
|
@ -93,7 +93,9 @@ Ox.TreeList = function(options, self) {
|
||||||
|
|
||||||
function constructItem(data) {
|
function constructItem(data) {
|
||||||
var $item = $('<div>').css({
|
var $item = $('<div>').css({
|
||||||
width: self.options.width - Ox.UI.SCROLLBAR_SIZE + 'px'
|
width: self.options.width == 'auto'
|
||||||
|
? '100%'
|
||||||
|
: self.options.width - Ox.UI.SCROLLBAR_SIZE + 'px'
|
||||||
}),
|
}),
|
||||||
$cell = $('<div>').addClass('OxCell').css({width: '8px'}),
|
$cell = $('<div>').addClass('OxCell').css({width: '8px'}),
|
||||||
$icon = data.id ? getIcon(data.id, data.expanded || (
|
$icon = data.id ? getIcon(data.id, data.expanded || (
|
||||||
|
|
Loading…
Reference in a new issue