提交 557ea951 编写于 作者: J Joao Moreno

list: const

上级 c898b10d
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册