提交 8f335ada 编写于 作者: I isidor

debug: do not use clientHeight when layouting repl tree

上级 50e49e3e
......@@ -145,8 +145,7 @@ export class Repl extends Panel {
public layout(dimension: builder.Dimension): void {
if (this.tree) {
this.renderer.setWidth(dimension.width - 20, this.characterWidthSurveyor.clientWidth / this.characterWidthSurveyor.textContent.length);
this.tree.layout(this.treeContainer.clientHeight);
this.tree.refresh().done(null, errors.onUnexpectedError);
this.tree.layout(dimension.height - 22);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册