From eaab61f08bb1790a42b678a50bcf543c3e3e1c6e Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 6 Mar 2015 22:05:01 +0000 Subject: [PATCH] Fixed using IsItemHovered() after EndChild() (#151) --- imgui.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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); } }