scale based on maximum rows
Merge pull request #79 from dimagi/row_caling

scale based on maximum rows