Resize event triggering and handling