From 21e07b676b0f6f1b636b3025a868222b66a515f9 Mon Sep 17 00:00:00 2001 From: Dalia Date: Wed, 18 Dec 2024 12:27:19 -0700 Subject: [PATCH] GUI: scrolltext should ignore invisible substring --- extern/imgui_patched/imgui_widgets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extern/imgui_patched/imgui_widgets.cpp b/extern/imgui_patched/imgui_widgets.cpp index df7fc5d073..bcb99540ec 100644 --- a/extern/imgui_patched/imgui_widgets.cpp +++ b/extern/imgui_patched/imgui_widgets.cpp @@ -539,7 +539,7 @@ void ImGui::ScrollText(ImGuiID id, const char* text, const ImVec2& pos, ImVec2 s ImDrawList* dl=window->DrawList; ImGuiStorage* storage=GetStateStorage(); - ImVec2 textSize=ImGui::CalcTextSize(text); + ImVec2 textSize=ImGui::CalcTextSize(text, NULL, true); bool mustNotScroll=false; if (size.x==0) {