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

RTL layout breaks with TextEdit #5546

Open
zakarumych opened this issue Dec 30, 2024 · 0 comments · May be fixed by #5547
Open

RTL layout breaks with TextEdit #5546

zakarumych opened this issue Dec 30, 2024 · 0 comments · May be fixed by #5547
Labels
bug Something is broken

Comments

@zakarumych
Copy link

zakarumych commented Dec 30, 2024

Describe the bug

To Reproduce
Steps to reproduce the behavior:

  1. Set RTL layout.
  2. Make a TextEdit widget
  3. When extra size is needed, UI::allocate_rect is called and UI ends up with cursor pointing to the wrong side of TextEdit widget
  4. Next widget overlaps with TextEdit.
  5. This happens for just 1 frame unless specific sizes introduce rounding error, leading to extra_size to be non-zero each frame.

Expected behavior
Cursor is pointing to the left side of TextEdit in RTL layout.

Screenshots

image

@zakarumych zakarumych added the bug Something is broken label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant