marijnh/CodeMirror2 — pull request #562 by njx (2012-06-05 22:23:18+00:00)
Title: Fix Scala mode demo to work with new scrolling behavior

Fixes #559 by setting the height of body to 100% (in addition to setting all the other parent heights to 100%).

In the original scrolling scheme, this actually wasn't working correctly either, though the behavior was better; it was essentially setting the height of the CodeMirror editor to be the full height of its content, meaning that no virtual scrolling was taking place (the vertical scrollbar being shown was the browser's `

` scrollbar, not the CodeMirror scroller's scrollbar) and the horizontal scrollbar was actually at the bottom of the entire scroll area, not the bottom of the window.

Tested this in Chrome/Safari/FF on Mac and IE9 on Win.