fix: wrong thick stick in view mode 'Month'

This commit is contained in:
hiawui 2022-06-29 12:19:45 +08:00
parent 76be9de801
commit c6e0b50ff5

View File

@ -391,10 +391,7 @@ export default class Gantt {
tick_class += ' thick'; tick_class += ' thick';
} }
// thick ticks for quarters // thick ticks for quarters
if ( if (this.view_is(VIEW_MODE.MONTH) && date.getMonth() % 3 === 0) {
this.view_is(VIEW_MODE.MONTH) &&
(date.getMonth() + 1) % 3 === 0
) {
tick_class += ' thick'; tick_class += ' thick';
} }