We have an accordion group that is filled dynamically with ngfor. We need to expand and scroll every accordion item to the top upon clicking on it so that the title stay visible. Unfortunately the accordion items have different heights.
We found this on stackoverflow:
but to make it work we should remove [fullscreen]=“true” and that is unfortunately not possible.
Can someone give a hint about how should it be done or a link to working example? Is the only possibility to give ID to every accordion item and calculate y position and then use scrollToPoint?