extensions part highlight

This commit is contained in:
Joao Moreno
2016-04-12 10:51:42 +02:00
parent c276394f56
commit 7b14a9e58b
5 changed files with 284 additions and 118 deletions

View File

@@ -130,6 +130,8 @@ class Controller<T> implements IDisposable {
}
private onClick(e: IListMouseEvent<T>) {
e.preventDefault();
e.stopPropagation();
this.list.setSelection(e.index);
}
@@ -193,6 +195,10 @@ export class List<T> implements IDisposable {
return this.view.getScrollHeight();
}
get scrollTop(): number {
return this.view.getScrollTop();
}
layout(height?: number): void {
this.view.layout(height);
}