Skip to content
This repository was archived by the owner on Dec 11, 2017. It is now read-only.
This repository was archived by the owner on Dec 11, 2017. It is now read-only.

Editor width doesn't account for extra space #5

Closed

Description

@melchoyce

The inclusion of the line numbers increases the overall width of the editor, so it cuts into the list of files on the side:

With:

image

Without:

image

The editor should remain the same width, with the line numbers taking up room inside, rather than outside.

Activity

  1. melchoyce commented on Jul 13, 2017

    @melchoyce
    CollaboratorAuthor
  2. modified the milestone: 4.9 on Aug 7, 2017
  3. westonruter commented on Aug 16, 2017

    @westonruter
    Member

    @melchoyce I don't think this is a problem. The main difference between the two editors, actually, is that CodeMirror does not wrap lines whereas a textarea does. We could enable lineWrapping option and that results in:

    image

    I'll also note that adding line-wrapping is a workaround fix for #32 as well.

  4. melchoyce commented on Aug 18, 2017

    @melchoyce
    CollaboratorAuthor

    Line-wrapping is good 👍 But the extra width is still a problem — notice in my before/after how the editor starts to run very close to the file list.

  5. melchoyce commented on Aug 18, 2017

    @melchoyce
    CollaboratorAuthor

    image

  6. westonruter commented on Aug 18, 2017

    @westonruter
    Member

    But the extra width is still a problem — notice in my before/after how the editor starts to run very close to the file list.

    Oh I see now. Fixed in 74859d1 via #33.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions