Fixed using IsItemHovered() after EndChild() (#151)

This commit is contained in:
ocornut 2015-03-06 22:05:01 +00:00
parent 9c486ce4f4
commit eaab61f08b
1 changed files with 4 additions and 0 deletions

View File

@ -2571,6 +2571,10 @@ void ImGui::EndChild()
sz.y = 0; sz.y = 0;
ImGui::End(); ImGui::End();
window = GetCurrentWindow();
ImGuiAabb bb(window->DC.CursorPos, window->DC.CursorPos + sz);
ItemAdd(bb, NULL);
ItemSize(sz); ItemSize(sz);
} }
} }