mirror of
https://github.com/ocornut/imgui.git
synced 2025-09-07 03:48:25 +00:00
BeginListBox(): fixed not consuming SetNextWindowXXX data when returning false.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// dear imgui, v1.89.9
|
||||
// dear imgui, v1.90 WIP
|
||||
// (widgets code)
|
||||
|
||||
/*
|
||||
@@ -6630,6 +6630,7 @@ bool ImGui::BeginListBox(const char* label, const ImVec2& size_arg)
|
||||
{
|
||||
ItemSize(bb.GetSize(), style.FramePadding.y);
|
||||
ItemAdd(bb, 0, &frame_bb);
|
||||
g.NextWindowData.ClearFlags(); // We behave like Begin() and need to consume those values
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user