Unfold lines before trying to scroll

(closes travis-ci/travis-ci#1501)