The #diffview height is set by css
#diffview { height: 600px; }
If there are too few lines to take up 600px, the #diffview is auto-adjusted. If there are too many lines to fit into 600px then scroll is enabled.
I have added in the scroll indicator to help user navigate through a long list of code.
Scroll logic is tweaked for performance.