Clip the 'lines' parameter to scroll() at the size of the scroll