mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-23 12:27:01 +00:00
WIP Menus: menus now affected by WindowMinSize (#126)
This commit is contained in:
parent
882b4a5eb4
commit
e7097d6176
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user