From 64c54f307bfa3dc8e93df47adb25568330542110 Mon Sep 17 00:00:00 2001 From: lucasmerlin Date: Tue, 2 Jun 2026 13:15:05 +0200 Subject: [PATCH] Default to stretch --- crates/egui/src/atomics/atom_layout.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/crates/egui/src/atomics/atom_layout.rs b/crates/egui/src/atomics/atom_layout.rs index bc6f10889..c824a2591 100644 --- a/crates/egui/src/atomics/atom_layout.rs +++ b/crates/egui/src/atomics/atom_layout.rs @@ -536,14 +536,9 @@ impl<'atom> SizedAtomLayout<'atom> { } SizedAtomKind::Empty { .. } => {} SizedAtomKind::Layout(layout) => { - // Hand the nested layout the full (possibly grown) cell width so its own - // `grow` atoms can expand, while keeping its measured height and honoring - // this atom's vertical alignment within the row. - let layout_rect = sized - .align - .align_size_within_rect(Vec2::new(frame.width(), size.y), frame); - let layout_response = ui.interact(layout_rect, layout.id, layout.sense); - layout.paint_at(ui, layout_rect, layout_response); + // TODO(lucasmerlin): Add some kind of justify flag to AtomLayout + let layout_response = ui.interact(frame, layout.id, layout.sense); + layout.paint_at(ui, frame, layout_response); } } }