|
@@ -5322,7 +5322,7 @@ bool ImGui::BeginChildEx(const char* name, ImGuiID id, const ImVec2& size_arg, b
|
|
|
|
|
|
// Process navigation-in immediately so NavInit can run on first frame
|
|
|
// Can enter a child if (A) it has navigatable items or (B) it can be scrolled.
|
|
|
- const ImGuiID temp_id_for_activation = (id + 1);
|
|
|
+ const ImGuiID temp_id_for_activation = ImHashStr("##Child", 0, id);
|
|
|
if (g.ActiveId == temp_id_for_activation)
|
|
|
ClearActiveID();
|
|
|
if (g.NavActivateId == id && !(flags & ImGuiWindowFlags_NavFlattened) && (child_window->DC.NavLayersActiveMask != 0 || child_window->DC.NavWindowHasScrollY))
|