diff --git a/egui/src/containers/resize.rs b/egui/src/containers/resize.rs index 519728d2..c0facb3a 100644 --- a/egui/src/containers/resize.rs +++ b/egui/src/containers/resize.rs @@ -37,7 +37,7 @@ impl Default for Resize { id: None, resizable: true, min_size: Vec2::splat(16.0), - default_size: vec2(128.0, 128.0), // TODO: perferred size for a resizable area (e.g. a window or a text edit) + default_size: vec2(320.0, 128.0), // TODO: preferred size of `Resize` area. outline: true, } } diff --git a/egui/src/containers/window.rs b/egui/src/containers/window.rs index 30774638..027962fd 100644 --- a/egui/src/containers/window.rs +++ b/egui/src/containers/window.rs @@ -40,7 +40,7 @@ impl<'open> Window<'open> { resize: Resize::default() .outline(false) .min_size([96.0, 32.0]) - .default_size([280.0, 400.0]), + .default_size([420.0, 420.0]), scroll: None, collapsible: true, } diff --git a/egui/src/demos/app.rs b/egui/src/demos/app.rs index 8a3e6d66..92be04f7 100644 --- a/egui/src/demos/app.rs +++ b/egui/src/demos/app.rs @@ -139,11 +139,9 @@ impl DemoApp { impl app::App for DemoApp { fn ui(&mut self, ui: &mut Ui, backend: &mut dyn app::Backend) { - Window::new("Backend") - .default_width(500.0) - .show(ui.ctx(), |ui| { - self.backend_ui(ui, backend); - }); + Window::new("Backend").scroll(false).show(ui.ctx(), |ui| { + self.backend_ui(ui, backend); + }); let web_info = backend.web_info(); let web_location_hash = web_info