Fix centering of line edit window on window resize