Browse Source

experiement on legend fixing

tripeur 4 years ago
parent
commit
fdbebb9893

+ 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;

File diff suppressed because it is too large
+ 0 - 0
lib/Timeline.js.map


File diff suppressed because it is too large
+ 0 - 0
lib/styles/SimplbeBar.styles.js


File diff suppressed because it is too large
+ 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{

Some files were not shown because too many files changed in this diff