1
0
mirror of https://github.com/ocornut/imgui.git synced 2024-11-29 01:44:37 +01:00

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

This commit is contained in:
omar 2017-08-14 13:27:19 +08:00
parent c1e1e015c4
commit 2b7fe73a08

View File

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