Ensures correct display of all-day events when collapsed or expanded. Improves the transition between collapsed and expanded states by adjusting the overflow event visibility.