update locale
sometimes ie7 has an issue
ie7 can sometimes trigger resize infinitely after placing calendar, add check of win size to avoid infinite calls