If first character in GUI textbox is right to left, set the textbox direction to that
This commit is contained in:
parent
9120062889
commit
4fe52ef7f6
3 changed files with 41 additions and 8 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue