Fix cell focus indicator height wrong initially

This commit is contained in:
Rob Lourens 2020-04-19 16:55:04 -05:00
parent df448dd078
commit ec0d19789f

View file

@ -513,6 +513,7 @@ export class CodeCellRenderer extends AbstractCellRenderer implements IListRende
elementDisposable.add(this.instantiationService.createInstance(CodeCell, this.notebookEditor, element, templateData));
this.renderedEditors.set(element, templateData.editor);
templateData.focusIndicator.style.height = `${element.layoutInfo.indicatorHeight}px`;
elementDisposable.add(element.onDidChangeLayout(() => {
templateData.focusIndicator.style.height = `${element.layoutInfo.indicatorHeight}px`;
}));