Correct the vertical height calculation of the diagram
Merge branch 'vertheight'