mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-16 00:54:19 +00:00
InputTextMultiline(): fix so that IsItemActive() can be used afterwards (otherwise the info was lost by using child/group)
This commit is contained in:
parent
c0f77f12ea
commit
81036ee46f
1 changed files with 2 additions and 0 deletions
|
|
@ -8111,6 +8111,8 @@ bool ImGui::InputTextEx(const char* label, char* buf, int buf_size, const ImVec2
|
|||
Dummy(text_size + ImVec2(0.0f, g.FontSize)); // Always add room to scroll an extra line
|
||||
EndChildFrame();
|
||||
EndGroup();
|
||||
if (g.ActiveId == id || is_currently_scrolling) // Set LastItemId which was lost by EndChild/EndGroup, so user can use IsItemActive()
|
||||
window->DC.LastItemId = g.ActiveId;
|
||||
}
|
||||
|
||||
if (is_password)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue