Fix bounds of selected option background in Menu

This commit is contained in:
Héctor Ramón Jiménez 2023-05-05 09:52:47 +02:00
parent c8952ee4a1
commit 00700a4742
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -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(),