How can I fix the position of the top 3 rows when scrolling

When scrolling, I need to keep the top 3 rows fixed .

If I set gantt.config.smart_rendering = false , I can do it.
if set gantt.config.smart_rendering = true, how can I do it