Problem with UI when window size changes

I have a problem with the UI elements not displaying correctly when the window size changes. The size is correct but the position of the elements changes and proceeds to the upper left. Any ideas why?