Now that you changed the row height, the height for the 50 rows (if you have 1 to 50) is 1409 and not 2450 but the above code makes the area to scroll past Row: 50 for many more blank rows.
This code solves the problem with the scroll bars and doesn’t seem to cause any issues. I don’t know why the div following the table exists, as it doesn’t seem to do anything useful.
Actually, There is a problem. When the listbox is set to resize vertically with the window, and the window is set to a small height, when the scrollbar is all the way to the bottom, some of the rows are not displayed. So for now, I’m going to use the default row height.