WIP Menus: menus now affected by WindowMinSize (#126)

This commit is contained in:
ocornut 2015-05-23 13:03:09 +01:00
parent 882b4a5eb4
commit e7097d6176

View File

@ -3510,7 +3510,7 @@ bool ImGui::Begin(const char* name, bool* p_opened, const ImVec2& size_on_first_
} }
// Minimum window size // 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); window->SizeFull = ImMax(window->SizeFull, style.WindowMinSize);
if (!window->Collapsed) if (!window->Collapsed)