Demo: fixed a misuse of EndChildFrame(). (#6496)

This commit is contained in:
ocornut 2023-06-07 13:43:56 +02:00
parent 956a1a17fb
commit 666b93e989

View File

@ -8002,8 +8002,8 @@ void ShowExampleAppDocuments(bool* p_open)
for (int n = 0; n < close_queue.Size; n++)
if (close_queue[n]->Dirty)
ImGui::Text("%s", close_queue[n]->Name);
ImGui::EndChildFrame();
}
ImGui::EndChildFrame();
ImVec2 button_size(ImGui::GetFontSize() * 7.0f, 0.0f);
if (ImGui::Button("Yes", button_size))