1
0
Fork 0
forked from 0x2620/oxjs

expand TreeList selecting an item

This commit is contained in:
j 2011-12-29 17:54:29 +05:30
commit 7831dcd77d
2 changed files with 34 additions and 4 deletions

View file

@ -125,8 +125,7 @@ Ox.DocPanel = function(options, self) {
});
self.$list = Ox.TreeList({
items: treeItems,
//fixme causes strange layout
//width: self.options.size
width: self.options.size - Ox.UI.SCROLLBAR_SIZE
})
.bindEvent({
select: selectItem
@ -185,7 +184,7 @@ Ox.DocPanel = function(options, self) {
@*/
that.selectItem = function(id) {
self.$list.triggerEvent('select', {'ids': [id]});
}
};
return that;
};