fix(segmented_button): use correct divider color when vertical
This commit is contained in:
parent
2faaeddb05
commit
c497c227ce
3 changed files with 15 additions and 8 deletions
|
|
@ -92,10 +92,13 @@ where
|
|||
let mut divider = None;
|
||||
|
||||
if self.dividers && segmetned_control && nth + 1 < num {
|
||||
divider = Some(ItemBounds::Divider(Rectangle {
|
||||
width: 1.0,
|
||||
..bounds
|
||||
}));
|
||||
divider = Some(ItemBounds::Divider(
|
||||
Rectangle {
|
||||
width: 1.0,
|
||||
..bounds
|
||||
},
|
||||
true,
|
||||
));
|
||||
|
||||
bounds.x += 1.0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue