calculate the actual height of the content area.