GUI: scrolltext should ignore invisible substring

This commit is contained in:
Dalia 2024-12-18 12:27:19 -07:00 committed by tildearrow
parent 0382105862
commit 64db1c5e83

View file

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