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 committed by Michael Murphy
parent 26a7e6b0f9
commit 2b23005fbf

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;
}