GUI: scrolltext should ignore invisible substring
This commit is contained in:
parent
0382105862
commit
64db1c5e83
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;
|
ImDrawList* dl=window->DrawList;
|
||||||
ImGuiStorage* storage=GetStateStorage();
|
ImGuiStorage* storage=GetStateStorage();
|
||||||
|
|
||||||
ImVec2 textSize=ImGui::CalcTextSize(text);
|
ImVec2 textSize=ImGui::CalcTextSize(text, NULL, true);
|
||||||
bool mustNotScroll=false;
|
bool mustNotScroll=false;
|
||||||
|
|
||||||
if (size.x==0) {
|
if (size.x==0) {
|
||||||
|
|
Loading…
Reference in a new issue