What function is used to move the viewport to the top of an element when it expands?
I have multiple boxes set up to have only one expanded at a time--currently expanded box collapses when one of the other closed boxes is expanded.
The problem in mobile is that when a box lower down the scroll is expanded, a box higher up the scroll collapses (pulling up all elements below it) and that results in the viewport not being at the top of the newly expanded box content--the user must scroll back up to see the content in the newly expanded box.
So I thought perhaps a command could be added to the expand onClick event to move the viewport to the top of the expanded element.
Hope this makes sense. How is this handled?