hook onresize event

to update wrap size when window resized