ImGuiColorTextEdit icon indicating copy to clipboard operation
ImGuiColorTextEdit copied to clipboard

Auto-Scroll Issue

Open xo1337 opened this issue 3 years ago • 4 comments

Hi , i've been using this TextEditor and for some reason when i try to scroll down, it auto-scrolls back up for some reason. Any help would be nice, thanks! :)

xo1337 avatar Apr 21 '21 02:04 xo1337

This is occuring when i call if (ImGui::CollapsingHeader("header)){ Box.Render(); }

xo1337 avatar Apr 21 '21 02:04 xo1337

I have same issue. Any help?

ghost avatar Jul 21 '21 02:07 ghost

I have same issue. Any help?

I've checked the source code. There is why and how: You should not call editor.SetText(str); in your render loop. SetText(); will set mScrollToTop=true every frame. So, set the text out of your render loop will make it right.

ghost avatar Jul 21 '21 08:07 ghost

I have same issue. Any help?

I've checked the source code. There is why and how: You should not call editor.SetText(str); in your render loop. SetText(); will set mScrollToTop=true every frame. So, set the text out of your render loop will make it right.

Thanks :)

xo1337 avatar Jul 21 '21 20:07 xo1337