Changing container width with code folding enabled results in broken selection #7156

Open
opened 2026-04-01 14:39:24 +02:00 by marijnh · 0 comments
marijnh commented 2026-04-01 14:39:24 +02:00 (Migrated from gitlab.com)

Steps to reproduce:

  1. Go to https://codemirror.net/5/demo/folding.html
  2. In dev tools, set container width to a fixed value, for example 300px.

Expected behavior: selection within editable area works normally.

What actually happens: you can select blank areas, set cursor to blank area.

Image
Steps to reproduce: 1. Go to https://codemirror.net/5/demo/folding.html 2. In dev tools, set container width to a fixed value, for example 300px. Expected behavior: selection within editable area works normally. What actually happens: you can select blank areas, set cursor to blank area. <img width="1342" height="764" alt="Image" src="https://github.com/user-attachments/assets/ecfcd303-a2a0-4f10-838e-ab4ea8746576" />
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#7156
No description provided.