Fit event labels into the box (timeline)