Merge pull request #4 from Frando/fixes
Fix table scrolling, add select event.
This commit is contained in:
commit
302f365ff2
|
@ -182,7 +182,12 @@ ListTable.prototype.select = function(i) {
|
||||||
if (i <= this.childBase) {
|
if (i <= this.childBase) {
|
||||||
this.setScroll(this.childBase - 1);
|
this.setScroll(this.childBase - 1);
|
||||||
}
|
}
|
||||||
return this._select(i);
|
this._select(i);
|
||||||
|
// Correct scrolling for header offset.
|
||||||
|
this.scrollTo(this.selected - 1);
|
||||||
|
if (this.rows && this.selected) {
|
||||||
|
this.emit('selectrow', this.rows[this.selected], this.selected)
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
ListTable.prototype.render = function() {
|
ListTable.prototype.render = function() {
|
||||||
|
|
Loading…
Reference in New Issue