fix(segmented_button): hidden new tab button on shrink

This commit is contained in:
Michael Aaron Murphy 2024-03-08 14:38:28 +01:00
parent e961e76a92
commit 2baba06c17
No known key found for this signature in database
GPG key ID: B2732D4240C9212C

View file

@ -150,7 +150,7 @@ where
if max_size.width >= visible_width {
state.buttons_visible += 1;
} else {
visible_width -= button_size.width - (max_height * 2.0);
visible_width = max_size.width - max_height;
break;
}