소스 검색

fix reorder

tripeur 4 년 전
부모
커밋
44a1b49aae
3개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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];
                     }
                 }

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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];
           }
         }

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.