1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 22:00:03 -04:00

Merge branch 'master' into multiples_viewports

This commit is contained in:
Emil Ernerfeldt
2023-11-12 10:46:41 +01:00
71 changed files with 1174 additions and 1557 deletions

View File

@@ -25,7 +25,7 @@ struct MyApp {}
impl eframe::App for MyApp {
fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) {
egui::CentralPanel::default().show(ctx, |ui| {
egui::ScrollArea::new([true, true]).show(ui, |ui| {
egui::ScrollArea::both().show(ui, |ui| {
ui.image(egui::include_image!("ferris.svg"));
ui.add(

View File

@@ -26,7 +26,7 @@ impl eframe::App for Content {
self.text.clear();
}
ScrollArea::vertical()
.auto_shrink([false; 2])
.auto_shrink(false)
.stick_to_bottom(true)
.show(ui, |ui| {
ui.label(&self.text);