瀏覽代碼

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;