Skip to content

Commit

Permalink
Fix bounds of selected option background in Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed May 5, 2023
1 parent c8952ee commit 00700a4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion native/src/overlay/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 00700a4

Please sign in to comment.