Forráskód Böngészése

Merge pull request #1749 from blink1073/fix-cell-drag

Fix cell drop order
Afshin Darian 8 éve
szülő
commit
715869fe60
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      src/notebook/widget.ts

+ 2 - 2
src/notebook/widget.ts

@@ -1269,10 +1269,10 @@ class Notebook extends StaticNotebook {
         value = factory.createRawCell({ cell });
         break;
       }
-      model.cells.insert(index, value);
+      model.cells.insert(index++, value);
     });
     // Activate the last cell.
-    this.activeCellIndex = index + values.length - 1;
+    this.activeCellIndex = index - 1;
   }
 
   /**