You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// THIS LIMITS TEXT INPUT TO 7 MAX!
ui.input_text("##",&mut buff).flags(InputTextFlags::ENTER_RETURNS_TRUE).build();// this does not!
ui.input_text("##",&mut buff).enter_returns_true(true).build();
Please describe your environment
imgui-rs version [0.11.0]
Windows 10(sdl2), Arch Linux(glfw)
The video demonstrates this. I am mashing my keyboard but first example does not go past 7 chars.
2023-12-28_22-34-46.mp4
The text was updated successfully, but these errors were encountered:
dbr
added a commit
that referenced
this issue
May 5, 2024
Ah - this seemed very mysterious at first, but it is acting correctly:
By default, the input_text widget has InputTextFlags::CALLBACK_RESIZE set - this enables imgui-rs to automatically resize the buffer as needed. It's set here
If you set flags like that - it replaces any existing flags with only ENTER_RETURNS_TRUE - disabling the auto-resizing of the text buffer
Please describe your environment
The video demonstrates this. I am mashing my keyboard but first example does not go past 7 chars.
2023-12-28_22-34-46.mp4
The text was updated successfully, but these errors were encountered: