Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230097

Scrolling of expanded accordion to the top [ionic6]

$
0
0

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?


Viewing all articles
Browse latest Browse all 230097

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>