forked from 0x2620/oxjs
expand TreeList selecting an item
This commit is contained in:
parent
1a7a5985d9
commit
7831dcd77d
2 changed files with 34 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue