Calculating heights of scroll areas.