From 55512ecf7b3d86b20f1a6eb145af08ee8fba1d1a Mon Sep 17 00:00:00 2001 From: bflatastic Date: Sun, 22 Nov 2026 19:30:47 +0700 Subject: [PATCH] ui-patterns: a section list shows its sections at their natural height, so it owns no scroll in a dialog body that scrolls --- crates/ui-patterns/src/patterns/form_dialogs/section_list.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/ui-patterns/src/patterns/form_dialogs/section_list.rs b/crates/ui-patterns/src/patterns/form_dialogs/section_list.rs index 6fef7ff6d..800618d2e 100644 --- a/crates/ui-patterns/src/patterns/form_dialogs/section_list.rs +++ b/crates/ui-patterns/src/patterns/form_dialogs/section_list.rs @@ -18,7 +18,7 @@ pub(crate) mod stories; /// What a section list draws under its list, in the list's column. type Foot<'a> = Box; -/// A single-select, click-activated, content-sized list without a header and a vertical divider at the start edge, +/// A single-select, click-activated, content-sized list at its natural height without a header and a vertical divider at the start edge, /// and the body of the shown section in a filling, vertically scrolled stack beside them; the list stays put while the /// body scrolls. /// @@ -75,6 +75,7 @@ impl<'a, K: Clone + Eq + Hash + Send + Sync + 'static> SectionList<'a, K> { .allow_empty(false) .header(false) .sizing(Sizing::Content) + .natural_height(true) .selection(Bind::given(Selection::single(shown.clone()))); if let Some(id) = id { sections = sections.id(id);