Skip to content

Preserve current view when resizing editor horizontally? #3339

@kevinushey

Description

@kevinushey

When word wrapping is enabled and an Ace editor instance is resized, the currently viewed lines 'shift' around, e.g.

soft-wrap

Does Ace by any chance provide an API that ensures that the current view is preserved when resizing the editor surface? (By preserved, I mean roughly ensuring that the top line visible in the editor remains visible as the editor is resized).

In the example above, I would like to see line 159 remain in view at the top of the screen even as the editor surface is resized, and lines are wrapped to form new 'screen' lines.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions