Scroll Ion Content on ngOnInit or ngAfterViewInit

Hi,

I try to scroll a view with a searchbar on top down, so the user won’t see the searchbar when entering the view.
(But he can scroll up to reach it)

When I try to scroll the ioncontent in ngOnInit or ngAfterViewInit, it won’t work:

 this.content.scrollToPoint(0, this.offsetTop, 0);

When I do it in ionViewDidEnter, then it works but you can see the scrolling.

How can I achieve this ?

Thanks in advance.