Is there a way to scroll the content of an element that has an overflow
of hidden
to the top?
Example use case:
- Container element has a max height of 200px, starting position is at 60px.
- User clicks "show more", the height expands to 200px.
- Since there is more content than 200px allows, the user can scroll to the bottom of the list.
- When the user clicks "show less", the height lowers to 60px.
- Problem arises, in that the list is no longer at the top and not scrollable.
Any ideas here would be great.