I am trying to render a text box in the center of my program window. When I run the program, my text box is not centered in the window. But upon expanding the window, the textbox become centered,...