quick fix for treelist layout
This commit is contained in:
parent
7b13e834a7
commit
e7f132f121
2 changed files with 26 additions and 19 deletions
|
@ -1469,6 +1469,8 @@ Ox.List = function(options, self) {
|
||||||
self.listLength = self.options.items.length;
|
self.listLength = self.options.items.length;
|
||||||
//loadItems();
|
//loadItems();
|
||||||
updatePositions();
|
updatePositions();
|
||||||
|
emptyFirstPage();
|
||||||
|
fillFirstPage();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*@
|
/*@
|
||||||
|
@ -1580,6 +1582,8 @@ Ox.List = function(options, self) {
|
||||||
self.listLength = self.options.items.length;
|
self.listLength = self.options.items.length;
|
||||||
updatePositions();
|
updatePositions();
|
||||||
}
|
}
|
||||||
|
emptyFirstPage();
|
||||||
|
fillFirstPage();
|
||||||
}
|
}
|
||||||
/*@
|
/*@
|
||||||
scrollToSelection <f> scroll list to current selection
|
scrollToSelection <f> scroll list to current selection
|
||||||
|
|
|
@ -43,7 +43,8 @@ Ox.TreeList = function(options, self) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
that.$element = Ox.List({
|
that.setElement(
|
||||||
|
self.$list = Ox.List({
|
||||||
_tree: true,
|
_tree: true,
|
||||||
construct: constructItem,
|
construct: constructItem,
|
||||||
itemHeight: 16,
|
itemHeight: 16,
|
||||||
|
@ -56,12 +57,14 @@ Ox.TreeList = function(options, self) {
|
||||||
}, Ox.copy(self))
|
}, Ox.copy(self))
|
||||||
.addClass('OxTextList OxTreeList')
|
.addClass('OxTextList OxTreeList')
|
||||||
.css({
|
.css({
|
||||||
width: self.options.width + 'px'
|
width: self.options.width + 'px',
|
||||||
|
overflowY: 'scroll'
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
anyclick: clickItem,
|
anyclick: clickItem,
|
||||||
toggle: toggleItems
|
toggle: toggleItems
|
||||||
});
|
})
|
||||||
|
);
|
||||||
|
|
||||||
function clickItem(e) {
|
function clickItem(e) {
|
||||||
var $target = $(e.target),
|
var $target = $(e.target),
|
||||||
|
|
Loading…
Reference in a new issue