fix prompt trigger resize event