Scroll window if necessary.