Fix overlay::Menu implementation

This commit is contained in:
Héctor Ramón 2021-06-01 19:13:34 +07:00
parent d83e263abe
commit 92361ef07d

View File

@ -350,7 +350,7 @@ where
*self.hovered_option = Some(
((cursor_position.y - bounds.y)
/ f32::from(text_size + self.padding * 2))
/ f32::from(text_size + self.padding.vertical()))
as usize,
);
}