diff --git a/imgui.cpp b/imgui.cpp index 215e0af1e..15c5b1b97 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); } }