Update the height calculation to include margins.