Skip to content

Commit

Permalink
GUI: scrolltext should ignore invisible substring
Browse files Browse the repository at this point in the history
  • Loading branch information
daliacoss committed Dec 18, 2024
1 parent 67009ed commit 21e07b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extern/imgui_patched/imgui_widgets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 21e07b6

Please sign in to comment.