added height adjustment for displaying events.