From 00700a4742102d77a1d05cf8c49463be49c0b76c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Fri, 5 May 2023 09:52:47 +0200 Subject: [PATCH] Fix `bounds` of selected option background in `Menu` --- native/src/overlay/menu.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/native/src/overlay/menu.rs b/native/src/overlay/menu.rs index 50f741efd0..d93a3b5655 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(),