Window size can be loaded from .ini data even if ImGuiWindowFlags_NoResize flag is set (#1048, #1056)

docking
omar 8 years ago
parent c1e1e015c4
commit 2b7fe73a08

@ -3941,7 +3941,7 @@ static ImGuiWindow* CreateNewWindow(const char* name, ImVec2 size, ImGuiWindowFl
window->Collapsed = settings->Collapsed; window->Collapsed = settings->Collapsed;
} }
if (ImLengthSqr(settings->Size) > 0.00001f && !(flags & ImGuiWindowFlags_NoResize)) if (ImLengthSqr(settings->Size) > 0.00001f)
size = settings->Size; size = settings->Size;
window->Size = window->SizeFull = size; window->Size = window->SizeFull = size;
} }

Loading…
Cancel
Save