fix shrinking scroll area in http demo
This commit is contained in:
parent
cd2227814f
commit
0cb1b18a6a
1 changed files with 15 additions and 13 deletions
|
@ -269,7 +269,9 @@ fn ui_resource(
|
||||||
|
|
||||||
ui.separator();
|
ui.separator();
|
||||||
|
|
||||||
egui::ScrollArea::vertical().show(ui, |ui| {
|
egui::ScrollArea::vertical()
|
||||||
|
.auto_shrink([false; 2])
|
||||||
|
.show(ui, |ui| {
|
||||||
if let Some(image) = image {
|
if let Some(image) = image {
|
||||||
if let Some(texture_id) = tex_mngr.texture(frame, &response.url, image) {
|
if let Some(texture_id) = tex_mngr.texture(frame, &response.url, image) {
|
||||||
let size = egui::Vec2::new(image.size.0 as f32, image.size.1 as f32);
|
let size = egui::Vec2::new(image.size.0 as f32, image.size.1 as f32);
|
||||||
|
|
Loading…
Reference in a new issue