hey you guys, I have this annoying issue: I have a component listing some items. If I click the first item, the page displaying its info starts at the top just fine. If I scroll down and click the last item, or the item in the middle, the page displaying its info starts at the bottom/middle. I tried the following:
HTML file
<ion-content #content id="staticstart">
item info
</ion-content>
TS File
@ViewChild('content', {static: false}) private content: any;
ionViewWillEnter() {
this.content.scrollToPoint(0, document.getElementById('staticstart').offsetTop, 300);
}
but the page still starts at bottom/middle, depends on the item I click. Any thoughts? Thanks!