mirror of
https://github.com/Drezil/imgui.git
synced 2025-03-31 16:32:45 +00:00
Fix for correctness and allow non-auto resized modals to have window minimum size applied - hopefully no-side effects (#249)
This commit is contained in:
parent
af5890b276
commit
4976bf97a6
@ -3734,7 +3734,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 | ImGuiWindowFlags_Popup | ImGuiWindowFlags_ChildMenu | ImGuiWindowFlags_Tooltip)))
|
if (!(flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_AlwaysAutoResize)))
|
||||||
{
|
{
|
||||||
window->SizeFull = ImMax(window->SizeFull, style.WindowMinSize);
|
window->SizeFull = ImMax(window->SizeFull, style.WindowMinSize);
|
||||||
if (!window->Collapsed)
|
if (!window->Collapsed)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user