How to set the scroll bar to top after searching

If I search a task after the scroll bar is down, I need to raise the scroll bar up to see the search value.
So, I want to set the scrollbar to top after searching. What should I do?
search task example :
https://snippet.dhtmlx.com/5/94180266e

Hi,

you can scroll gantt to the top programmatically using gantt.scrollTo:

gantt.scrollTo(null, 0);

https://docs.dhtmlx.com/gantt/api__gantt_scrollto.html

Good! Thanks Aliaksandr.