set max width for calendar