mirror of
https://github.com/tildearrow/furnace.git
synced 2025-01-03 06:01:29 +00:00
GUI: scrolltext should ignore invisible substring
This commit is contained in:
parent
0382105862
commit
64db1c5e83
1 changed files with 1 additions and 1 deletions
2
extern/imgui_patched/imgui_widgets.cpp
vendored
2
extern/imgui_patched/imgui_widgets.cpp
vendored
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue