提交 0bf4c2ca 编写于 作者: I isidor

repl: give default element height when first output comes very early

fixes #2626
上级 57d7b84d
......@@ -119,7 +119,7 @@ export class ReplExpressionsRenderer implements tree.IRenderer {
}
private getHeightForString(s: string): number {
if (!s || !s.length || this.width <= 0 || this.characterWidth <= 0) {
if (!s || !s.length || !this.width || this.width <= 0 || !this.characterWidth || this.characterWidth <= 0) {
return 18;
}
let realLength = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册