CAL-958 Improve calendar event resize JS