Skip to content

RTL layout breaks with TextEdit #5546

@zakarumych

Description

@zakarumych

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions