Preventing event elements in calendar of being too high.