From c6801722a1ad506df711d43c5f855a8a40b3415c Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Tue, 25 Jul 2023 23:21:34 -0500 Subject: [PATCH] Always resize ImGui windows when rendering placefile text to avoid clipping --- scwx-qt/source/scwx/qt/map/placefile_layer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scwx-qt/source/scwx/qt/map/placefile_layer.cpp b/scwx-qt/source/scwx/qt/map/placefile_layer.cpp index c796cc93..1b82af67 100644 --- a/scwx-qt/source/scwx/qt/map/placefile_layer.cpp +++ b/scwx-qt/source/scwx/qt/map/placefile_layer.cpp @@ -104,7 +104,8 @@ void PlacefileLayer::Impl::RenderText( ImVec2 {x, y}, ImGuiCond_Always, ImVec2 {0.5f, 0.5f}); ImGui::Begin(windowName.c_str(), nullptr, - ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoNav | + ImGuiWindowFlags_AlwaysAutoResize | + ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_NoNav | ImGuiWindowFlags_NoBackground); // Render text