From 38ffb33408596a1c0cf0013cb62cb5fd9076dd2c Mon Sep 17 00:00:00 2001 From: ZeroInternalReflection <89038572+ZeroInternalReflection@users.noreply.github.com> Date: Tue, 12 Mar 2024 21:10:18 -0400 Subject: [PATCH] Update ImGui window positions on every resize --- src/cata_imgui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cata_imgui.cpp b/src/cata_imgui.cpp index 6e11e20b756ae..1f05327647c9f 100644 --- a/src/cata_imgui.cpp +++ b/src/cata_imgui.cpp @@ -427,7 +427,7 @@ void cataimgui::window::draw() if( cached_bounds.y != -1.f ) { center.y = cached_bounds.y; } - ImGui::SetNextWindowPos( center, ImGuiCond_Appearing, { cached_bounds.x == -1.f ? 0.5f : 0.f, cached_bounds.y == -1.f ? 0.5f : 0.f } ); + ImGui::SetNextWindowPos( center, ImGuiCond_Always, { cached_bounds.x == -1.f ? 0.5f : 0.f, cached_bounds.y == -1.f ? 0.5f : 0.f } ); } else if( cached_bounds.x >= 0 && cached_bounds.y >= 0 ) { ImGui::SetNextWindowPos( { cached_bounds.x, cached_bounds.y } ); }