If I take the following program, put the cursor somewhere in the
middle (so both fragments are off-screen), and run, when I click on
the "something else", it only makes the first line visible -- the rest
of the purple is still off-screen.
(define (valid-answer? ans
(string=? "yes"
(string=? "no"))))
When we're using the scrollTo method in codemirror, we should provide it a generous margin so that the context is closer to the center of the screen.
Reported by sk:
If I take the following program, put the cursor somewhere in the middle (so both fragments are off-screen), and run, when I click on the "something else", it only makes the first line visible -- the rest of the purple is still off-screen.
(define (valid-answer? ans
(string=? "yes" (string=? "no"))))
When we're using the scrollTo method in codemirror, we should provide it a generous margin so that the context is closer to the center of the screen.