Always resize ImGui windows when rendering placefile text to avoid clipping

This commit is contained in:
Dan Paulat 2023-07-25 23:21:34 -05:00
parent 6dedce5089
commit c6801722a1

View file

@ -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