提交 453746bb 编写于 作者: J Joao Moreno

💄

上级 98bcd06d
......@@ -849,8 +849,8 @@ export class TreeView extends HeightMap {
}
private set scrollHeight(scrollHeight: number) {
const horizontalScrollHeight = this.horizontalScrolling ? 10 : 0;
this.scrollableElement.setScrollDimensions({ scrollHeight: scrollHeight + horizontalScrollHeight });
scrollHeight = scrollHeight + (this.horizontalScrolling ? 10 : 0);
this.scrollableElement.setScrollDimensions({ scrollHeight });
}
public get viewWidth(): number {
......@@ -872,13 +872,9 @@ export class TreeView extends HeightMap {
}
public set scrollTop(scrollTop: number) {
const horizontalScrollHeight = this.horizontalScrolling ? 10 : 0;
this.scrollableElement.setScrollDimensions({
scrollHeight: this.getContentHeight() + horizontalScrollHeight
});
this.scrollableElement.setScrollPosition({
scrollTop: scrollTop
});
const scrollHeight = this.getContentHeight() + (this.horizontalScrolling ? 10 : 0);
this.scrollableElement.setScrollDimensions({ scrollHeight });
this.scrollableElement.setScrollPosition({ scrollTop });
}
public getScrollPosition(): number {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册