We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f78c470 commit e58fca8Copy full SHA for e58fca8
1 file changed
src/vs/workbench/contrib/notebook/browser/view/renderers/codeCell.ts
@@ -40,7 +40,10 @@ export class CodeCell extends Disposable {
40
const width = this.viewCell.layoutInfo.editorWidth;
41
const lineNum = this.viewCell.lineCount;
42
const lineHeight = this.viewCell.layoutInfo.fontInfo?.lineHeight || 17;
43
- const totalHeight = lineNum * lineHeight + EDITOR_TOP_PADDING + EDITOR_BOTTOM_PADDING;
+ const totalHeight = this.viewCell.layoutInfo.editorHeight === 0
44
+ ? lineNum * lineHeight + EDITOR_TOP_PADDING + EDITOR_BOTTOM_PADDING
45
+ : this.viewCell.layoutInfo.editorHeight;
46
+
47
this.layoutEditor(
48
{
49
width: width,
0 commit comments