How to fix Header/Column in Gantt ?

if there is any way someone has found to fix the headers of the chart so that once it reaches the top of the screen, the headers stay in view. Similar to this example

Usually the headers stay on the screen and you don’t need to add anything to make it work:

If you enable the autosize config, Gantt is fully rendered on the page:

So, you scroll the page, not Gantt, and it doesn’t control that.

However, it is possible to always show the headers when you scroll the page, but you need to implement a custom solution.
Here is an example of how it can be implemented: