Compare commits

...

4 Commits

Author SHA1 Message Date
Safwan Samsudeen
d3d0e82077 chore: format 2025-01-23 11:54:10 +05:30
Safwan Samsudeen
dbf75cbd1c
Merge pull request #499 from frappe/master
Publish new changes
2025-01-23 11:51:57 +05:30
Praveen
ed89651814 fix: on calling update_task, start and end date not being updated 2025-01-16 15:26:36 +05:30
Safwan Samsudeen
1d78ec1be9
Publish v1 2025-01-09 14:26:07 +05:30

View File

@ -58,7 +58,8 @@ export default class Bar {
this.compute_duration(); this.compute_duration();
this.corner_radius = this.gantt.options.bar_corner_radius; this.corner_radius = this.gantt.options.bar_corner_radius;
this.width = this.gantt.config.column_width * this.duration; this.width = this.gantt.config.column_width * this.duration;
if (!this.task.progress || this.task.progress < 0) this.task.progress = 0; if (!this.task.progress || this.task.progress < 0)
this.task.progress = 0;
if (this.task.progress > 100) this.task.progress = 100; if (this.task.progress > 100) this.task.progress = 100;
} }