You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
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
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:
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.
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.
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
Activity
nathansobo commentedon Dec 16, 2016
We could render the scrollbar ourselves but I'm not keen to deal with that.
maxbrunsfeld commentedon Dec 16, 2016
Yeah, I agree. Maybe we could shrink the scrollbar view and its
scrollTopproportionally, 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.nathansobo commentedon Dec 17, 2016
Great idea about doing it proportional. That's the way to go.
[-]Scrollbar incorrectly bottoms out at fixed number of lines[/-][+]Some editor DOM operations stop working correctly after a certain number of lines[/+]