Browse Source

render the correct index placedholder cell

Eric Charles 3 năm trước cách đây
mục cha
commit
765f095308
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/notebook/src/widget.ts

+ 1 - 1
packages/notebook/src/widget.ts

@@ -581,7 +581,7 @@ export class StaticNotebook extends Widget {
     ) {
       const index = this._renderedCellsCount;
       const cell = this._cellsArray[index];
-      this._renderPlaceholderCell(cell, index - 1);
+      this._renderPlaceholderCell(cell, index);
     }
   }