Fixed a case that could cause overlapping pivot elements to appear

- The height calculation did not take into account gaps between child elements caused by them having several children. This caused a newly added sibling's children to overlap. Fixed by compensating for the vertical displacement between children when returning the height data.
Merge branch 'hotfix-2.1.19'