Explorar o código

Advancing after running should scroll the new cell into view.

Jason Grout %!s(int64=8) %!d(string=hai) anos
pai
achega
4494768441
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/notebook/notebook/actions.ts

+ 3 - 0
src/notebook/notebook/actions.ts

@@ -430,6 +430,8 @@ namespace NotebookActions {
     } else {
       widget.activeCellIndex++;
     }
+    widget.scrollToActiveCell();
+
     return promise;
   }
 
@@ -457,6 +459,7 @@ namespace NotebookActions {
     let cell = model.factory.createCodeCell();
     model.cells.insert(widget.activeCellIndex + 1, cell);
     widget.activeCellIndex++;
+    widget.scrollToActiveCell();
     widget.mode = 'edit';
     return promise;
   }