You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was just investigating a problem with the week and month view mode, so I tried to get a minimal working example of the original Frappé Gantt to run.
Turns out if the tasks are too far away from the current date, there is a rendering problem.
If I change the date of the tasks to the same month as the current date, everything renders just fine.
The bug occurs in the main Gantt class in:
make_grid_highlights() {
if (this.options.highlight_weekend) this.highlightWeekends()
// highlight today's | week's | month's | year's
if (
this.view_is(VIEW_MODE.DAY) ||
this.view_is(VIEW_MODE.WEEK) ||
this.view_is(VIEW_MODE.MONTH) ||
this.view_is(VIEW_MODE.YEAR)
) {
// Used as we must find the _end_ of session if view is not Day
const { x: left, date } = this.computeGridHighlightDimensions(this.options.view_mode)
const top = this.options.header_height + this.options.padding / 2;
const height = (this.options.bar_height + this.options.padding) * this.tasks.length;
this.$current_highlight = this.create_el({ top, left, height, classes: 'current-highlight', append_to: this.$container })
let $today = document.getElementById(date_utils.format(date).replaceAll(' ', '_')) // <- $today ends up being null
$today.classList.add('current-date-highlight')
$today.style.top = +$today.style.top.slice(0, -2) - 4 + 'px'
$today.style.left = +$today.style.left.slice(0, -2) - 8 + 'px'
}
}
The text was updated successfully, but these errors were encountered:
I was just investigating a problem with the week and month view mode, so I tried to get a minimal working example of the original Frappé Gantt to run.
Turns out if the tasks are too far away from the current date, there is a rendering problem.
If I change the date of the tasks to the same month as the current date, everything renders just fine.
The bug occurs in the main Gantt class in:
The text was updated successfully, but these errors were encountered: