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);