I'd say that there's no 'out of the box' way of doing it, but you could resize the window based on a calculation of how many records there are in the list view.
for example if your window is 300 high with no records, and each record adds 10. Open a new window with size 300 + 10 * number of records. The height of a new window, or the height of an adjusted window can be a calculation.
I've used the method andy has describe successfully in a number of list view windows. You have to do some careful calculating and double checking, but it can be made to work if you allow for all the possible variations. The preferences file "enlarge window contents to improve readability" setting can add to the challenge, for example. Plus mac and windows platforms are not the same and I've found differences when moving to a new Filemaker version.
All good points that need considering with such a solution. As soon as we start custom developing solutions rather than using out of the box, which in this case doesn't exist, these kind of problems can occur. Platform differences, screen resolution, version upgrade, feature depreciation, theme changes, etc. All part of the varied tapestry that is FM development.