Adding sizing code to resize event