Open GaN601 opened 1 year ago
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. https://github.com/emilk/egui/blob/master/examples/images/src/main.rs
Desktop (please complete the following information): OS: ubuntu 22.04 Version egui: 0.23.0
I am facing the same issue. I am currently working through the example section of egui. https://github.com/emilk/egui/blob/master/examples/images/src/main.rs
Desktop (please complete the following information): OS: ubuntu 22.04 Version egui: 0.23.0
you can use Image::new("file://assets/icon-256.png").fit_to_exact_size(Vec2::new(42.0, 42.0)) Fixed image size avoids this problem
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, https://github.com/emilk/egui/issues/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.
https://github.com/emilk/egui/assets/80253667/1b234868-5b7e-4f41-8f74-8626da1ed761
Desktop (please complete the following information):