Explorar el Código

resolve render linenumbers issue of notebook

Borys Palka hace 5 años
padre
commit
8be69e7534
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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;