mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 23:06:49 +01:00
list: const
This commit is contained in:
@@ -190,11 +190,11 @@ export class List<T> implements IDisposable {
|
||||
relativeTop = relativeTop > 1 ? 1 : relativeTop;
|
||||
|
||||
// y = mx + b
|
||||
var m = elementHeight - this.view.height;
|
||||
const m = elementHeight - this.view.height;
|
||||
this.view.setScrollTop(m * relativeTop + elementTop);
|
||||
} else {
|
||||
var viewItemBottom = elementTop + elementHeight;
|
||||
var wrapperBottom = scrollTop + this.view.height;
|
||||
const viewItemBottom = elementTop + elementHeight;
|
||||
const wrapperBottom = scrollTop + this.view.height;
|
||||
|
||||
if (elementTop < scrollTop) {
|
||||
this.view.setScrollTop(elementTop);
|
||||
|
||||
Reference in New Issue
Block a user