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

EditText caret is vertically centered when using multiple lines #2513

Open
TranquilAbyss opened this issue Nov 9, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@TranquilAbyss
Copy link

Release Type: Official Release/GitHub (please choose appropriate option)
Official Release

Version: Version number and/or git branch
4.2.02.188

Platform(s): Does the problem occur on Windows, Android...?
Windows

Describe the bug
A clear and concise description of what the bug is.
EditText Cursor/caret is centered vertically when editing multiple lines, rather than being next to the text.

To Reproduce
Steps to reproduce the behavior:

  1. Open Stride UI Editor in Game Studio
  2. Add an EditText
  3. Set Min Lines to 2
  4. Put Text in Edit Text

Expected behavior
Caret stays at vertically next to character when using multiple lines.

Screenshots
Current behavior
Image

Additional context
Since EditText Text Overflow behavior is currently stretch or overflow the Edit text. The this bug fix would be more useful if there was a Text Wrap Overflow behavior. Which would prevent the size of the UIElement from changing horizontally but instead put text, preferably tokens, on new lines. Then a caretLine variable could be used to track the vertical positioning.

@TranquilAbyss TranquilAbyss added the bug Something isn't working label Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant