fix missing total height change event.

This commit is contained in:
rebornix 2021-02-03 11:47:46 -08:00 committed by Sandeep Somavarapu
parent e984154e11
commit 041f9b975b

View file

@ -122,6 +122,12 @@ export class CodeCell extends Disposable {
}
}));
this._register(viewCell.onDidChangeLayout((e) => {
if (e.totalHeight) {
this.relayoutCell();
}
}));
this._register(templateData.editor.onDidContentSizeChange((e) => {
if (e.contentHeightChanged) {
if (this.viewCell.layoutInfo.editorHeight !== e.contentHeight) {