Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong current date in month view #506

Open
iqqmuT opened this issue Jan 29, 2025 · 5 comments
Open

Wrong current date in month view #506

iqqmuT opened this issue Jan 29, 2025 · 5 comments

Comments

@iqqmuT
Copy link
Contributor

iqqmuT commented Jan 29, 2025

Steps to reproduce:

  1. Set date in your computer to 2025-01-29
  2. Use the code below or open CodeSandBox

Expected outcome:
Gantt shows current date correctly

Actual outcome:
The current date is highlighted in wrong position. However, in week view the current date is shown correctly.

Image

const tasks = [
  {
    id: "001",
    name: "My task",
    start: "2024-11-29",
    end: "2025-02-18",
    progress: 100,
  },
];
new Gantt("#gantt", tasks, {
  view_mode: "Month",
  view_mode_select: true,
  infinite_padding: false,
});
@safwansamsudeen
Copy link
Collaborator

Thanks for raising this bug - we will look into it. Any additional information is appreciated.

@benardt
Copy link

benardt commented Feb 4, 2025

Same for me. Month view do not display correct Gantt chart. Location of 'today line' and 'task bar' are wrong. View in week mode and day mode are correct.

# Group-1: Design Phase
  - Task-1: Wireframing {2024-10-01 to 2025-01-03} 90% [None]
  - Task-2: UI Design {2025-01-31 to 2025-02-15} 10% [Task-1]
  - Task-3: Validation {2025-02-15 to 2025-03-25} 0% [Task-1]

Image

@benardt
Copy link

benardt commented Feb 4, 2025

Same for me. Month view do not display correct Gantt chart. Location of 'today line' and 'task bar' are wrong. View in week mode and day mode are correct.

# Group-1: Design Phase
  - Task-1: Wireframing {2024-10-01 to 2025-01-03} 90% [None]
  - Task-2: UI Design {2025-01-31 to 2025-02-15} 10% [Task-1]
  - Task-3: Validation {2025-02-15 to 2025-03-25} 0% [Task-1]

Image

Some improvements by adding "infinite_padding: false,". Task bars location bad location in Month view.

@safwansamsudeen
Copy link
Collaborator

It does seem like infinite_padding is causing this - can the others confirm?

@iqqmuT
Copy link
Contributor Author

iqqmuT commented Feb 5, 2025

Yes this is related to infinite_padding: false option and it seems like that's related to #498 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants