mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 23:06:49 +01:00
Merge branch 'master' into extension-viewlet
This commit is contained in:
@@ -126,9 +126,15 @@ class Controller<T> implements IDisposable {
|
||||
private view: ListView<T>
|
||||
) {
|
||||
this.toDispose = [];
|
||||
this.toDispose.push(view.addListener('mousedown', e => this.onMouseDown(e)));
|
||||
this.toDispose.push(view.addListener('click', e => this.onClick(e)));
|
||||
}
|
||||
|
||||
private onMouseDown(e: IListMouseEvent<T>) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
}
|
||||
|
||||
private onClick(e: IListMouseEvent<T>) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
@@ -192,7 +198,7 @@ export class List<T> implements IDisposable {
|
||||
}
|
||||
|
||||
get contentHeight(): number {
|
||||
return this.view.getScrollHeight();
|
||||
return this.view.getContentHeight();
|
||||
}
|
||||
|
||||
get scrollTop(): number {
|
||||
|
||||
Reference in New Issue
Block a user