Skip to content

Commit

Permalink
Fix flaky cell height layout - missing call to relayoutCell in this case
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Apr 17, 2020
1 parent 63565f3 commit 9c40c35
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,8 @@ export class CodeCell extends Disposable {
}

const realContentHeight = templateData.editor?.getContentHeight();
const width = this.viewCell.layoutInfo.editorWidth;

if (realContentHeight !== undefined && realContentHeight !== totalHeight) {
// TODO not redundant with content change event?
this.layoutEditor(
{
width: width,
height: realContentHeight
}
);

viewCell.editorHeight = realContentHeight;
this.onCellHeightChange(realContentHeight);
}

if (this.notebookEditor.getActiveCell() === this.viewCell && viewCell.focusMode === CellFocusMode.Editor) {
Expand Down

0 comments on commit 9c40c35

Please sign in to comment.