setup calendar for parentview width