I created a React application using an (https://mui.com/material-ui/react-list/) element containing images with various dimensions and max-width: 25%
. At the page’s load, I invoke on the list scrollTo({top: some-list-top-value})
to scroll to a particular position. I also capture the list’s scroll changes and observe that immediately after moving to some-list-top-value, the list scrolls down a bit more. If I don’t place the images in the list this scroll change doesn’t happen. How should I fix this?