resize event

update viewport dimension on resize event