REVIEW ONLY: Implement totalHeight() method to include line heights and line widget heights

For review before submitting to Marijnh.