when content.length becomes less or the rowHeights become less and the existing scroll top is beyond max reset to a scrollTop of 0.

This is clearly not optimal, but future work can instead calculate the optimal scrollTop