From 7fac4013a468d80812d4dbcd38f94013873df47e Mon Sep 17 00:00:00 2001 From: ocornut Date: Sat, 2 May 2015 12:22:52 +0100 Subject: [PATCH] Build fix --- imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 290c0e6b..d219e385 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -3300,7 +3300,7 @@ bool ImGui::Begin(const char* name, bool* p_opened, const ImVec2& size_on_first_ // But otherwise we don't honor ImGuiWindowFlags_AlwaysAutoResize when collapsed. if (window->AutoFitFrames > 0) window->SizeFull = window->AutoFitOnlyGrows ? ImMax(window->SizeFull, size_auto_fit) : size_auto_fit; - window->Size = title_bar_rect.GetSize(); + window->Size = window->TitleBarRect().GetSize(); } else {