Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong cursor position when adding line widget above the first line and code folding #6862

Closed
11bit opened this issue Jan 6, 2022 · 2 comments

Comments

@11bit
Copy link

11bit commented Jan 6, 2022

I want to add a line widget above the first line of my json content but when json is folded cursor appears on a widget instead of the line:
image

Example codesandbox
https://codesandbox.io/s/sharp-raman-glxbh?file=/src/index.js

Steps to reproduce

  1. Add a json with folding
  2. Add line widget above the first line
  3. Fold the first line
  4. Click on the first line to put a cursor in there - cusor will have wrong vertical positioning

BTW are there other ways to add some UI on top of the code inside scrollable container so it will be scrolled together with the code? Thanks!

@marijnh marijnh closed this as completed in 7e0cd1d Jan 6, 2022
@marijnh
Copy link
Member

marijnh commented Jan 6, 2022

Attached patch should address this.

@11bit
Copy link
Author

11bit commented Jan 6, 2022

Great. Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants