Make window update when resized.