Skip to content

Commit

Permalink
Merge pull request #16579 from opf/bug/57395-color-gradient-gone-in-g…
Browse files Browse the repository at this point in the history
…antt-charts-for-work-packages-with-only-start-or-due-date

[57395] Color gradient gone in gantt charts for work packages with only start or due date
  • Loading branch information
HDinger authored Sep 3, 2024
2 parents de29d2c + 0f4d29b commit 3d13902
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,13 +253,13 @@ export class TimelineCellRenderer {
if (_.isNaN(due.valueOf()) && !_.isNaN(start.valueOf())) {
// Set due date to today
due = moment();
bar.style.backgroundImage = 'linear-gradient(90deg, rgba(255,255,255,0) 0%, #F1F1F1 100%)';
bar.setAttribute('style', 'background-image: linear-gradient(90deg, rgba(255,255,255,0) 0%, #F1F1F1 100%) !important');
}

// only finish date, fade out bar to the left
if (_.isNaN(start.valueOf()) && !_.isNaN(due.valueOf())) {
start = due.clone();
bar.style.backgroundImage = 'linear-gradient(90deg, #F1F1F1 0%, rgba(255,255,255,0) 80%)';
bar.setAttribute('style', 'background-image: linear-gradient(90deg, #F1F1F1 0%, rgba(255,255,255,0) 80%) !important');
}

this.setElementPositionAndSize(element, renderInfo, start, due);
Expand Down

0 comments on commit 3d13902

Please sign in to comment.