Kaynağa Gözat

fix reorder

tripeur 4 yıl önce
ebeveyn
işleme
44a1b49aae
3 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 1 1
      lib/Timeline.js
  2. 0 0
      lib/Timeline.js.map
  3. 1 1
      src/Timeline.ts

+ 1 - 1
lib/Timeline.js

@@ -158,7 +158,7 @@ let Timeline = class Timeline extends lit_element_1.LitElement {
                         this.rows.splice(idx + r.parent.children.indexOf(r) + 1, 0, r);
                     }
                     else {
-                        this.rows.splice(idx + r.parent.children.length + 1, 0, r);
+                        this.rows.splice(idx + r.parent.children.length, 0, r);
                         r.parent.children = [...r.parent.children, r];
                     }
                 }

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
lib/Timeline.js.map


+ 1 - 1
src/Timeline.ts

@@ -210,7 +210,7 @@ class Timeline extends LitElement {
           if (alreadyChild) {
             this.rows.splice(idx + r.parent.children.indexOf(r) + 1, 0, r);
           } else {
-            this.rows.splice(idx + r.parent.children.length + 1, 0, r);
+            this.rows.splice(idx + r.parent.children.length, 0, r);
             r.parent.children = [...r.parent.children, r];
           }
         }

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor