fixed height-calculation of events