The Wayback Machine - https://web.archive.org/web/20200603202519/https://github.com/libgdx/libgdx/issues/6033
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

Textarea cursor/selection misaligned if line starts with a space #6033

Open
d01010101 opened this issue May 2, 2020 · 2 comments
Open

Textarea cursor/selection misaligned if line starts with a space #6033

d01010101 opened this issue May 2, 2020 · 2 comments

Comments

@d01010101
Copy link

@d01010101 d01010101 commented May 2, 2020

Issue details

Textarea cursor/selection misaligned if line starts with a space.

Reproduction steps/code

Type a space at the beginning of a line. Then type a black character, the cursor line will be off about a half character width to the right.

Version of LibGDX and/or relevant dependencies

Fairly recent, gdx-setup has just been downloaded but it says nothing about the version.

Please select the affected platforms

  • Android
  • iOS (robovm)
  • iOS (MOE)
  • HTML/GWT
  • Windows
  • Linux
  • MacOS
@d01010101 d01010101 changed the title Textarea cursor/selection misaligned if line starts with a series of spaces Textarea cursor/selection misaligned if line starts with a space May 2, 2020
@NathanSweet
Copy link
Member

@NathanSweet NathanSweet commented May 2, 2020

I haven't needed TextArea in my projects, it's one of the few widgets I don't typically maintain. PRs for fixes are welcome! Maybe @anserran or @rgarcia or @ralph or @Gekk0r are interested.

@d01010101
Copy link
Author

@d01010101 d01010101 commented May 2, 2020

It is more complicated. Sometimes the cursor is half a character to the left, sometimes half a character to the right, and it does not necessarily seem to be connected with leading spaces.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.