Markdown scroll when it's one line #3834

Closed
opened 2016-02-19 11:31:20 +01:00 by marijnh · 3 comments
marijnh commented 2016-02-19 11:31:20 +01:00 (Migrated from gitlab.com)

I tested it at chrome 48.0.2564.109.

  1. Open the site https://codemirror.net/
  2. Delete CodeMirror's text, leave one line(eg.<!-- Create a simple CodeMirror instance -->).
  3. Move mouse to CodeMirror. CodeMirror can scrol.

I'am sorry, My English is poor.

I tested it at chrome 48.0.2564.109. 1. Open the site https://codemirror.net/ 2. Delete CodeMirror's text, leave one line(eg.`<!-- Create a simple CodeMirror instance -->`). 3. Move mouse to CodeMirror. CodeMirror can scrol. I'am sorry, My English is poor.
marijnh commented 2016-02-19 11:45:20 +01:00 (Migrated from gitlab.com)

The demo at http://codemirror.net does not show a scrollbar when there's only a single line in it, neither could I scroll it with the scroll wheel. What kind of scrolling do you mean?

The demo at http://codemirror.net does not show a scrollbar when there's only a single line in it, neither could I scroll it with the scroll wheel. What kind of scrolling do you mean?
marijnh commented 2016-02-19 15:20:30 +01:00 (Migrated from gitlab.com)

It's not scrollbar.

When CodeMirror has only a single line, The text in CodeMirror will up and down when the mouse are scrolling
20160219232006
.

I'am sorry, My English is poor.

It's not scrollbar. When CodeMirror has only a single line, The text in CodeMirror will up and down when the mouse are scrolling ![20160219232006](https://cloud.githubusercontent.com/assets/2993927/13177909/5b6df9c4-d75f-11e5-9c85-a37cbce17ff0.png) . I'am sorry, My English is poor.
marijnh (Migrated from gitlab.com) closed this issue 2016-02-19 16:35:11 +01:00
marijnh commented 2016-02-19 16:35:19 +01:00 (Migrated from gitlab.com)

Ah, now I can see it. Attached patch fixes it for me (on Chrome)

Ah, now I can see it. Attached patch fixes it for me (on Chrome)
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
codemirror/codemirror5#3834
No description provided.