angular ionic 7 typescript -> How to start ion-segment scrolled to end horizontally

97 views Asked by At

The pre selected segment is being cutted off the screen when the component is inicialized, only after selecting another segment the focus is correct.

Already tried scrollIntoView on ngAfterViewInit, also Change Detector Ref but did not worked.

Expected behavior: The segment must load horizontally scrolled to the end of the screen. Showld load like this Current Behavior: Now is loading like this

link with a demo of the behavior https://stackblitz.com/edit/ionic6-angular13-tirtee?file=src%2Fapp%2Fapp.component.ts

0

There are 0 answers