WeScheme icon indicating copy to clipboard operation
WeScheme copied to clipboard

scrolling to an error by clicking highlight should have some margins

Open dyoo opened this issue 11 years ago • 0 comments

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.

dyoo avatar Apr 09 '13 19:04 dyoo