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

TextBox: Wrong text highlights with center and far horizontal alignment #2653

Open
Chikinsupu opened this issue May 25, 2024 · 0 comments
Open
Labels
bug Something isn't working ui
Milestone

Comments

@Chikinsupu
Copy link
Contributor

Issue description:
When setting the horizontal alignment in textboxes to center or far the highlighting of the text seems to be broken. The highlight itself gets drawn behind the actual text and it's not possible to select the text by dragging over it because the bounds seem to be off?
When alignment is set to near, everything works as expected.

Center alignment
FlaxEditor_5mxSBzEmOG
FlaxEditor_nt1CEoBRqQ

GIF showcase:
HighlightBugShow
In the gif i am btw holding my left mouse button to select the text, but as you can see nothing is happening.

Far alignment
FlaxEditor_AluyDZSEWE
FlaxEditor_U8VgQblzXz
It's actually hard to see here because of the icons, but the highlight is the small blue block at the very end, behind the text

Steps to reproduce:

  1. Set horizontal alignment in any textbox to center or far, in the editor.
    image

  2. Enter text

  3. Try to select text or press CTRL+A

  4. Profit

Flax version:
1.8.6512.2

@mafiesto4 mafiesto4 added bug Something isn't working ui labels May 30, 2024
@mafiesto4 mafiesto4 added this to the 1.9 milestone May 30, 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 ui
Projects
None yet
Development

No branches or pull requests

2 participants