New customer? Start here
Use Resize Window script each time you switch between Detail View and List View. It is doesn’t matter how many records you have - List View will collapse or stretch according the records number. The secret is three special hidden Bounds fields placed to the List View layout. Thanks to them script calculates window height.