Merge pull request #1831 from iced-rs/fix/menu-selected-option-bounds
Fix `bounds` of selected option background in `Menu`
This commit is contained in:
commit
bc62013b6c
1 changed files with 5 additions and 1 deletions
|
|
@ -473,7 +473,11 @@ where
|
|||
if is_selected {
|
||||
renderer.fill_quad(
|
||||
renderer::Quad {
|
||||
bounds,
|
||||
bounds: Rectangle {
|
||||
x: bounds.x + appearance.border_width,
|
||||
width: bounds.width - appearance.border_width * 2.0,
|
||||
..bounds
|
||||
},
|
||||
border_color: Color::TRANSPARENT,
|
||||
border_width: 0.0,
|
||||
border_radius: appearance.border_radius.into(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue