diff --git a/src/widget/segmented_button/horizontal.rs b/src/widget/segmented_button/horizontal.rs index 5bc7a519..848273bc 100644 --- a/src/widget/segmented_button/horizontal.rs +++ b/src/widget/segmented_button/horizontal.rs @@ -176,8 +176,8 @@ where let total_width = (state.buttons_visible as f32) * (width + spacing); size = limits.height(Length::Fixed(height)).resolve( - total_width, - height, + self.width, + self.height, Size::new(total_width, height), );