浏览代码

experiement on legend fixing

tripeur 4 年之前
父节点
当前提交
fdbebb9893
共有 6 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      lib/Timeline.js
  2. 0 0
      lib/Timeline.js.map
  3. 0 0
      lib/styles/SimplbeBar.styles.js
  4. 0 0
      lib/styles/Timeline.style.js
  5. 1 1
      src/Timeline.ts
  6. 1 1
      src/styles/Timeline.style.ts

+ 1 - 1
lib/Timeline.js

@@ -304,7 +304,7 @@ let Timeline = class Timeline extends lit_element_1.LitElement {
                 let i = 0;
                 while (currentDate.isBefore(this._end)) {
                     i += this.legendSpan;
-                    if (nextColumn.diff(currentDate, legendUnit) >= 0) {
+                    if (nextColumn.diff(currentDate, legendUnit) > 0) {
                         row.push({ colspan: i, title: '' + currentDate.format(this.legendUnitFormat[legendUnit]) });
                         i = 0;
                         currentDate = nextColumn;

文件差异内容过多而无法显示
+ 0 - 0
lib/Timeline.js.map


文件差异内容过多而无法显示
+ 0 - 0
lib/styles/SimplbeBar.styles.js


文件差异内容过多而无法显示
+ 0 - 0
lib/styles/Timeline.style.js


+ 1 - 1
src/Timeline.ts

@@ -386,7 +386,7 @@ class Timeline extends LitElement {
                 let i = 0;
                 while(currentDate.isBefore(this._end)){
                     i+=this.legendSpan;
-                    if(nextColumn.diff(currentDate,legendUnit) >= 0  ){                    
+                    if(nextColumn.diff(currentDate,legendUnit) > 0  ){                    
                         row.push({colspan:i,title:'' + currentDate.format(this.legendUnitFormat[legendUnit])})
                         i = 0;
                         currentDate = nextColumn;

+ 1 - 1
src/styles/Timeline.style.ts

@@ -157,7 +157,7 @@ i.jc-spacer.collapse:after{
     color:#fff;
     border-radius:3px;
     margin:2px 0px;
-    z-index:1;
+    z-index:auto;
     cursor: grab;
 }
 .jc-timeslot-title{

部分文件因为文件数量过多而无法显示