When resizing, keep the window centered around the original window position