fix(segmented_button): hidden new tab button on shrink
This commit is contained in:
parent
26a7e6b0f9
commit
2b23005fbf
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ where
|
||||||
if max_size.width >= visible_width {
|
if max_size.width >= visible_width {
|
||||||
state.buttons_visible += 1;
|
state.buttons_visible += 1;
|
||||||
} else {
|
} else {
|
||||||
visible_width -= button_size.width - (max_height * 2.0);
|
visible_width = max_size.width - max_height;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue