Centering window upon resize.