Fixed a bug that would not correctly calculate the numbers of rows to display for views that are about to be drawn/layouted for the first time