Is the CSS work around preventing the ListView component from scrolling?
Or was the scrolling not working before the work around?
I saw you had commented on the post that you linked. To answer your question, you would need to inspect the page with your browser tools to find the unique identifier for the HTML component that you are looking to apply the CSS properties to.
Can you share a video or a screenshot of the component? As well as the settings in the Inspector panel for the ListView component. Do you have the Spacing Height set to Auto or Fixed?