WebCoder49 / code-input

Fully customisable, editable, syntax-highlighted textareas + plugins
https://css-tricks.com/creating-an-editable-textarea-that-supports-syntax-highlighted-code/
MIT License
171 stars 23 forks source link

line numbers disappearing when text exceeds available space horizontally #95

Closed SimonFliegel closed 5 months ago

SimonFliegel commented 6 months ago

When the text exceeds the available space horizontally while line numbers are enabled (using prism-line-numbers-plugin) a scrollbar appears for horizontal scrolling as intended. However when scrolling all the way back to the left border the line numbers have disappeared and there is just the border which separates line numbers from code (see picture below). Please let me know when you have trouble reproducing the error. Regards.

Screenshot from 2024-04-19 18-09-47

WebCoder49 commented 6 months ago

Thank you for pointing this out, @SimonFliegel. I am quite busy now but this definitely is near the top of priorities for code-input, and I will let you know when I start working on it.

WebCoder49 commented 5 months ago

@SimonFliegel It seems like you might be using version 2.1.0 which does have this error; please could you upgrade to the latest release 2.2 (if you have problems, the upgrading guidance in the dropdown at the link might be useful). I should be releasing version 2.2.2 today/tomorrow so please wait for it if you want an even more stable version with more bugs fixed!

Please let me know if the bugs persist / other new ones appear.

WebCoder49 commented 5 months ago

I will close this issue now but you can reopen it if you have any more questions.

WebCoder49 commented 5 months ago

Sorry for the delay - I started to overhaul the docs and demos before the release, which I probably should have done afterwards! 🫢 I'm pretty sure I will release version 2.3 today, with this fix in it.