소스 검색

resolve render linenumbers issue of notebook

Borys Palka 5 년 전
부모
커밋
8be69e7534
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/handlers/notebook.ts

+ 3 - 1
src/handlers/notebook.ts

@@ -57,7 +57,9 @@ export class NotebookHandler implements IDisposable {
     notebookTracker: NotebookTracker,
     codeCell: CodeCell
   ) {
-    this.cellManager.activeCell = codeCell;
+    requestAnimationFrame(() => {
+      this.cellManager.activeCell = codeCell;
+    });
   }
 
   private notebookTracker: INotebookTracker;