fix the style problem when user resize window wider on menu open