mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-12 00:14:20 +00:00
WIP Menus: menus now affected by WindowMinSize (#126)
This commit is contained in:
parent
882b4a5eb4
commit
e7097d6176
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue