Adjust output to window on resize.