Skip to content

BUG: CodeEditor stretches out of viewport if code line gets too long, making scrollbar and close button inaccessible #3877

Open
@gradinarufelix

Description

Description

When using the Neos.Neos/Inspector/Editors/CodeEditor, pasting a long line of code will lead to the close button and the scrollbar of the editor view to move out of the viewport, making them inaccessible.

Steps to Reproduce

  1. Create node types with property using a Neos.Neos/Inspector/Editors/CodeEditor editor
  2. Go to the backend, open the code editor
  3. Paste or write a very long line of code, preferably an HTML tag with an attribute with a very long value (apparently it has to do with tag attributes)
  4. The close button and scrollbar of the editor will start to move out of the viewport.

Expected behavior

Long code lines are automatically wrapped, to avoid overflow. Alternatively, a scrollbar for the x-axis should be shown.

Actual behavior

ezgif-2-77e97b575e

See above, the editor stretches over the viewport limit, making the close button and scrollbar inaccessible.

Affected Versions

Neos: 8.3.6

UI: 8.3.11

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