From 3674d30e90ad9a8cd7c0a967d5b163d145c3e678 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sun, 4 Jan 2015 18:32:15 +0000 Subject: [PATCH] Fixed clicking on Combo box label. --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 362cb28e..4c9e4edb 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -5150,7 +5150,7 @@ bool ImGui::Combo(const char* label, int* current_item, bool (*items_getter)(voi const ImGuiAabb bb(frame_bb.Min, frame_bb.Max + ImVec2(style.ItemInnerSpacing.x + text_size.x,0)); const float arrow_size = (window->FontSize() + style.FramePadding.x * 2.0f); - const bool hovered = IsHovered(bb, id); + const bool hovered = IsHovered(frame_bb, id); bool value_changed = false; RenderFrame(frame_bb.Min, frame_bb.Max, window->Color(ImGuiCol_FrameBg));