Update detect window resizing