Fixed typo in height calculation for accomodating displayed rows.