-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
image in ScrollArea jitters #3455
Comments
I fixed it by setting the image to a fixed size, if you think this is not a bug, please just close the issue |
I am facing the same issue. I am currently working through the example section of egui. Desktop (please complete the following information): |
you can use Image::new("file://assets/icon-256.png").fit_to_exact_size(Vec2::new(42.0, 42.0)) |
This happens with ScrollArea in general, not just images in ScrollArea. I've been having issues with this for text as well. I thought it was tied to scroll_to_bottom, but it may not be... I saw another issue here where the scrollbar can go beyond its intended bounds, #3734, which may be tied to this issue as well. |
I think this is caused by the following feedback loop:
So any of the following things could work:
I think to fix this in egui we'd need some way to detect if this flickering is currently occuring and then decide to either show or hide the scrollbar until the content or scroll area size changes again. |
eframe.template.2023-10-11.15-51-35.mp4
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: