提交 13c3824d 编写于 作者: J Joao Moreno

fixes #37355

上级 2e61f751
......@@ -213,7 +213,11 @@ class DirtyDiffWidget extends PeekViewWidget {
this.diffEditor.setModel(this.model);
const position = new Position(getModifiedEndLineNumber(change), 1);
const height = getChangeHeight(change) + /* padding */ 8;
const lineHeight = this.editor.getConfiguration().lineHeight;
const editorHeight = this.editor.getLayoutInfo().height;
const editorHeightInLines = Math.floor(editorHeight / lineHeight);
const height = Math.min(getChangeHeight(change) + /* padding */ 8, Math.floor(editorHeightInLines / 3));
this.renderTitle();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册