Change height adjustment on scroller feature to max-height from height

This seems like such an obvious thing to do that I'm wondering if there's a feature that would allow this behaviour, but since I didn't find such a thing I decided to just modify the source. 

The original code leaves some blank space if there's not enough rows to fill the height. Going with max-height allows the table to adjust to whatever rows there are until that height is reached, and then starts scrolling.