error when resizing the window

error when resizing the window, the modal not execute autoposition