Skip to content

Should handle vertical and horizontal overflow #23

@devenovil

Description

@devenovil

Current behaviour

Editor didn't handle vertical and horizontal overflow

Expected behaviour

Editor should handle vertical and horizontal overflow (may be wrap content for handle horizontal)

Code sample

https://codesandbox.io/s/py38vl9nn0

Screenshots (if applicable)

image

What have you tried

I already tried using style={{overflow-y: 'auto', overflow-x:'auto'}} to set scroll if there an overflow content, it's show scroll for both vertical and horizontal overflow, but there is some strange bug.
If i click cursor on overflow line, and put it on the end, it's show on the max width, instead of the end of the line.
And also when i'm going to the bottom line, the cursor show on the max height, instead of the bottom of the line.

Your Environment

software version
react-simple-code-editor ^0.8.0
react ^16.7.0
npm or yarn 6.2.0
node 10.8.0
browser Google Chrome Version 72.0.3626.109

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