提交 2b0fc3b0 编写于 作者: P Peng Lyu

Fix infinite relayout of comment widget.

上级 7ed75d99
......@@ -622,7 +622,6 @@ export class ReviewZoneWidget extends ZoneWidget {
const lineHeight = this.editor.getConfiguration().lineHeight;
const arrowHeight = Math.round(lineHeight / 3);
const frameThickness = Math.round(lineHeight / 9) * 2;
console.log(dimensions);
const computedLinesNumber = Math.ceil((headHeight + dimensions.height + arrowHeight + frameThickness + 8 /** margin bottom to avoid margin collapse */) / lineHeight);
this._relayout(computedLinesNumber);
......
......@@ -63,7 +63,6 @@ export class SimpleCommentEditor extends CodeEditorWidget {
verticalHasArrows: false,
horizontalHasArrows: false
},
automaticLayout: true,
overviewRulerLanes: 2,
lineDecorationsWidth: 0,
scrollBeyondLastLine: false,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册