Correctly calculate the view length. Whoops.