I could also just remove ``totalHeight`` from the API. After these changes it's only used in unit tests.