add window re-size and scroll events 

Add window re-size and scroll events to adjust the offset of calender.