fix(segmented_button): misaligned next tab button

This commit is contained in:
Michael Aaron Murphy 2024-01-27 02:38:07 +01:00
parent 135770a16d
commit 213ede371b
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
2 changed files with 5 additions and 16 deletions

View file

@ -152,7 +152,7 @@ where
// If collapsed, use the maximum width available.
visible_width = if state.collapsed {
max_size.width - f32::from(self.button_height)
max_size.width
} else {
total_width
};