Revert "fix missing markdown cell rendering on restore."
This reverts commit b4aa5aee57
.
This commit is contained in:
parent
b3facbba17
commit
8aa1e9f940
1 changed files with 2 additions and 2 deletions
|
@ -129,7 +129,7 @@ export class MarkupCellViewModel extends BaseCellViewModel implements ICellViewM
|
|||
? this.viewContext.notebookOptions.computeMarkdownCellEditorWidth(initialNotebookLayoutInfo.width)
|
||||
: 0,
|
||||
bottomToolbarOffset: bottomToolbarGap,
|
||||
totalHeight: 1
|
||||
totalHeight: 0
|
||||
};
|
||||
|
||||
this._register(this.onDidChangeState(e => {
|
||||
|
@ -182,7 +182,7 @@ export class MarkupCellViewModel extends BaseCellViewModel implements ICellViewM
|
|||
|
||||
private _updateTotalHeight(newHeight: number) {
|
||||
if (newHeight !== this.layoutInfo.totalHeight) {
|
||||
this.layoutChange({ totalHeight: Math.max(1, newHeight) });
|
||||
this.layoutChange({ totalHeight: newHeight });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue