Skip to content

Commit

Permalink
Fix height of overlay::Menu
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Feb 18, 2023
1 parent 7dc1fb4 commit ffcd4f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion native/src/overlay/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,8 @@ where
let size = {
let intrinsic = Size::new(
0.0,
text_size + self.padding.vertical() * self.options.len() as f32,
(text_size + self.padding.vertical())
* self.options.len() as f32,
);

limits.resolve(intrinsic)
Expand Down

0 comments on commit ffcd4f1

Please sign in to comment.