Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Some editor DOM operations stop working correctly after a certain number of lines #13459

Open

Description

@maxbrunsfeld

Scrollbar

We render a scrollbar by creating a div with a height that reflects the editor's screen line count. Unfortunately DOM nodes' heights seem to be bounded:

max-height

Reported by @ungb and @Ben3eeE

Decoration rendering

Absolutely-positioned elements like cursors stop rendering correctly after a certain number of lines. It seems that DOM nodes' top property has a hard upper bound.

/cc @nathansobo @as-cii Any ideas on how to solve this?

Activity

  1. nathansobo commented on Dec 16, 2016

    @nathansobo
    Contributor

    We could render the scrollbar ourselves but I'm not keen to deal with that.

  2. maxbrunsfeld commented on Dec 16, 2016

    @maxbrunsfeld
    ContributorAuthor

    Yeah, I agree. Maybe we could shrink the scrollbar view and its scrollTop proportionally, in order to keep its scroll position correct. It would distort the size of the scrollbar itself (making it taller than it would otherwise be), but that might not be so bad.

  3. nathansobo commented on Dec 17, 2016

    @nathansobo
    Contributor

    Great idea about doing it proportional. That's the way to go.

  4. changed the title [-]Scrollbar incorrectly bottoms out at fixed number of lines[/-] [+]Some editor DOM operations stop working correctly after a certain number of lines[/+] on May 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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