[Web]Handle window resizing.