diff --git a/imgui.cpp b/imgui.cpp index 215e0af1..15c5b1b9 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -2571,6 +2571,10 @@ void ImGui::EndChild() sz.y = 0; ImGui::End(); + + window = GetCurrentWindow(); + ImGuiAabb bb(window->DC.CursorPos, window->DC.CursorPos + sz); + ItemAdd(bb, NULL); ItemSize(sz); } }