From e7097d6176ebcce93ec5fbef17578bdf03097ca4 Mon Sep 17 00:00:00 2001 From: ocornut Date: Sat, 23 May 2015 13:03:09 +0100 Subject: [PATCH] WIP Menus: menus now affected by WindowMinSize (#126) --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index fbe0592c..f0208b79 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -3510,7 +3510,7 @@ bool ImGui::Begin(const char* name, bool* p_opened, const ImVec2& size_on_first_ } // Minimum window size - if (!(flags & ImGuiWindowFlags_ChildWindow) && !(flags & ImGuiWindowFlags_Tooltip)) + if (!(flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_ChildMenu | ImGuiWindowFlags_Tooltip))) { window->SizeFull = ImMax(window->SizeFull, style.WindowMinSize); if (!window->Collapsed)