提交 2c92a701 编写于 作者: R rebornix

Use container height for markdown cell, consider separate MarkdownViewModel and CodeViewModel

上级 9b235bae
......@@ -168,7 +168,7 @@ export class StatefullMarkdownCell extends Disposable {
if (this.editor) {
// switch from editing mode
this.editingContainer!.style.display = 'none';
const clientHeight = this.cellContainer.clientHeight;
const clientHeight = templateData.container.clientHeight;
notebookEditor.layoutNotebookCell(viewCell, clientHeight);
} else {
// first time, readonly mode
......@@ -182,7 +182,7 @@ export class StatefullMarkdownCell extends Disposable {
}
this.localDisposables.add(markdownRenderer.onDidUpdateRender(() => {
const clientHeight = this.cellContainer.clientHeight;
const clientHeight = templateData.container.clientHeight;
notebookEditor.layoutNotebookCell(viewCell, clientHeight);
}));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册