diff --git a/src/widget/segmented_button/widget.rs b/src/widget/segmented_button/widget.rs index b56534d0..158497df 100644 --- a/src/widget/segmented_button/widget.rs +++ b/src/widget/segmented_button/widget.rs @@ -377,6 +377,7 @@ where tree::State::new(LocalState { first: self.model.order.iter().copied().next().unwrap_or_default(), paragraphs: SecondaryMap::new(), + buttons_visible: usize::MAX, // TODO: Maybe calculate this based on the size of the widget. ..LocalState::default() }) }