diff options
| author | 2023-05-05 09:52:47 +0200 | |
|---|---|---|
| committer | 2023-05-05 09:52:47 +0200 | |
| commit | 00700a4742102d77a1d05cf8c49463be49c0b76c (patch) | |
| tree | d83cf94e45dcead75008e3e216ef497c6b4dda0d /native/src/overlay | |
| parent | c8952ee4a1118fe67bfdf40fc77f3ff30f5d0278 (diff) | |
| download | iced-00700a4742102d77a1d05cf8c49463be49c0b76c.tar.gz iced-00700a4742102d77a1d05cf8c49463be49c0b76c.tar.bz2 iced-00700a4742102d77a1d05cf8c49463be49c0b76c.zip | |
Fix `bounds` of selected option background in `Menu`
Diffstat (limited to 'native/src/overlay')
| -rw-r--r-- | native/src/overlay/menu.rs | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/native/src/overlay/menu.rs b/native/src/overlay/menu.rs index 50f741ef..d93a3b56 100644 --- a/native/src/overlay/menu.rs +++ b/native/src/overlay/menu.rs @@ -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(), | 
