Bugfix start index of grid-line

This commit is contained in:
chfhtw
2025-07-21 15:08:25 +02:00
parent f1e28cec4e
commit e25687be52
2 changed files with 1 additions and 2 deletions
@@ -214,7 +214,6 @@ export default {
const result = Array.from({length: this.axisMain.length}, () => Array());
target.forEach(event => {
// NOTE(chris): make new Date object to reset the time
const start = event.start || this.axisMainBorders[0].plus(-1);
const end = event.end || this.axisMainBorders[this.axisMainBorders.length - 1].plus(1);
@@ -41,7 +41,7 @@ export default {
eventsWithRowInfo() {
const events = [];
this.events.forEach(event => {
const rows = [2, -1];
const rows = [1, -1];
if (event.startsHere) {
rows[0] = 't_' + event.start.diff(this.date).toMillis();
}