提交 ddb66419 编写于 作者: R Rob Lourens

Don't set the markdown cell height based on the height

上级 2f18a781
...@@ -414,7 +414,10 @@ export class MarkdownCellRenderer extends AbstractCellRenderer implements IListR ...@@ -414,7 +414,10 @@ export class MarkdownCellRenderer extends AbstractCellRenderer implements IListR
templateData.cellContainer.appendChild(renderedHTML); templateData.cellContainer.appendChild(renderedHTML);
} }
if (height) { if (height === undefined) {
return;
}
const elementDisposables = templateData.elementDisposables; const elementDisposables = templateData.elementDisposables;
elementDisposables.add(new CellContextKeyManager(templateData.contextKeyService, this.notebookEditor.viewModel?.notebookDocument!, element)); elementDisposables.add(new CellContextKeyManager(templateData.contextKeyService, this.notebookEditor.viewModel?.notebookDocument!, element));
...@@ -435,11 +438,8 @@ export class MarkdownCellRenderer extends AbstractCellRenderer implements IListR ...@@ -435,11 +438,8 @@ export class MarkdownCellRenderer extends AbstractCellRenderer implements IListR
elementDisposables.add(this.editorOptions.onDidChange(newValue => markdownCell.updateEditorOptions(newValue))); elementDisposables.add(this.editorOptions.onDidChange(newValue => markdownCell.updateEditorOptions(newValue)));
elementDisposables.add(markdownCell); elementDisposables.add(markdownCell);
element.totalHeight = height;
templateData.languageStatusBarItem.update(element, this.notebookEditor); templateData.languageStatusBarItem.update(element, this.notebookEditor);
} }
}
disposeTemplate(templateData: MarkdownCellRenderTemplate): void { disposeTemplate(templateData: MarkdownCellRenderTemplate): void {
templateData.disposables.clear(); templateData.disposables.clear();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册