If first character in GUI textbox is right to left, set the textbox direction to that

This commit is contained in:
Yousef Khadadeh 2025-11-16 09:41:09 +03:00
parent 9120062889
commit 4fe52ef7f6
3 changed files with 41 additions and 8 deletions

View file

@ -21,6 +21,7 @@ template <typename T> class TextBox : public Element {
force_update_textbox(io, false);
textbox->set_width(std::numeric_limits<float>::max());
textbox->set_text_direction_between(0, 0, textbox->get_suggested_direction(0));
CLAY({
.layout = {