Zoom to fit not working when Gantt is showing a baseline

Hi,

I just noticed there is a bug when I click "zoom to fit" if there is a baseline, otherwise the zoom to fit works correctly.


Here is the situation before clicking "zoom to fit"

Image_7990_1745485490535

Here it is after clicking it:

Image_5511_1745485444848


Do you have the same issue?

Thank you. 
Best regards, Matteo


1 Reply

SJ Sridharan Jayabalan Syncfusion Team April 25, 2025 09:36 AM UTC

Matteomessmer,

Greetings from Syncfusion.

For your query, we have prepared a sample based on your shared screenshot. In our validation, we enabled the critical path, displayed baselines, disabled the Task ID column, and performed the zoomToFit action—but were unable to replicate the reported issue.

 

To proceed further and investigate this in detail, we kindly request the following information:

 

  • Complete Gantt chart configuration code.
  • Are you using any custom zooming levels? If yes, please share those configurations.
  • Your data source in JSON format.
  • Are you using a timeline template? If so, please share the related code.
  • A video demonstration of the issue.

 

Alternatively, try to replicate the issue using our attached sample. Or, share a runnable version of your sample where the issue is reproduced.

 

Sample - https://stackblitz.com/edit/react-zrw87a6z-8qzhlbzr?file=index.js,data.js

Regards,

Sridharan


Loader.
Up arrow icon