Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-Scroll Issue #129

Open
xo1337 opened this issue Apr 21, 2021 · 4 comments
Open

Auto-Scroll Issue #129

xo1337 opened this issue Apr 21, 2021 · 4 comments

Comments

@xo1337
Copy link

xo1337 commented Apr 21, 2021

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
Copy link
Author

xo1337 commented Apr 21, 2021

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

@ghost
Copy link

ghost commented Jul 21, 2021

I have same issue. Any help?

@ghost
Copy link

ghost commented Jul 21, 2021

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.

@xo1337
Copy link
Author

xo1337 commented Jul 21, 2021

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant