From 5530ac3254ed76ef1b9981026a6c151731b7d4da Mon Sep 17 00:00:00 2001 From: Ashley Wulber Date: Wed, 7 Feb 2024 19:34:24 -0500 Subject: [PATCH] fix: typo in resolve for segmented button --- src/widget/segmented_button/horizontal.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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), );