Fix overlay::Menu implementation
This commit is contained in:
parent
d83e263abe
commit
92361ef07d
1 changed files with 1 additions and 1 deletions
|
|
@ -350,7 +350,7 @@ where
|
||||||
|
|
||||||
*self.hovered_option = Some(
|
*self.hovered_option = Some(
|
||||||
((cursor_position.y - bounds.y)
|
((cursor_position.y - bounds.y)
|
||||||
/ f32::from(text_size + self.padding * 2))
|
/ f32::from(text_size + self.padding.vertical()))
|
||||||
as usize,
|
as usize,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue