diff --git a/imgui.cpp b/imgui.cpp index b6119ac..120e603 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -2915,7 +2915,12 @@ window->Size = window->SizeFull = size; } - if (ImLengthSqr(window->Size) < 0.00001f) + if ((flags & ImGuiWindowFlags_AlwaysAutoResize) != 0) + { + window->AutoFitFrames = 2; + window->AutoFitOnlyGrows = false; + } + else if (ImLengthSqr(window->Size) < 0.00001f) { window->AutoFitFrames = 2; window->AutoFitOnlyGrows = true;