mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-14 17:07:01 +00:00
Begin: WIP consistent Begin/End behavior, ListBoxHeader() fix.
This commit is contained in:
parent
f0c7981b01
commit
e32b72c12c
@ -6133,7 +6133,10 @@ bool ImGui::ListBoxHeader(const char* label, const ImVec2& size_arg)
|
||||
RenderText(ImVec2(frame_bb.Max.x + style.ItemInnerSpacing.x, frame_bb.Min.y + style.FramePadding.y), label);
|
||||
|
||||
// FIXME-NEWBEGIN: Use to be return true so we'll trigger more issues.
|
||||
return BeginChildFrame(id, frame_bb.GetSize());
|
||||
bool ret = BeginChildFrame(id, frame_bb.GetSize());
|
||||
if (!ret)
|
||||
EndGroup();
|
||||
return ret;
|
||||
}
|
||||
|
||||
// FIXME: In principle this function should be called EndListBox(). We should rename it after re-evaluating if we want to keep the same signature.
|
||||
|
Loading…
Reference in New Issue
Block a user