Merge pull request #1714 from iced-rs/fix/overlay-menu-height

Fix height of `overlay::Menu`
This commit is contained in:
Héctor Ramón 2023-02-18 09:00:44 +01:00 committed by GitHub
commit c6218cbc55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)