Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

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

@markocikos

Description

@markocikos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions