Fix bounds of PickList text label

This commit is contained in:
Héctor Ramón Jiménez 2023-05-10 00:37:08 +02:00
parent f75b8bd9ec
commit 1400b5187d
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -706,7 +706,9 @@ pub fn draw<'a, T, Renderer>(
x: bounds.x + padding.left,
y: bounds.center_y(),
width: bounds.width - padding.horizontal(),
height: text_size * 1.2,
height: f32::from(
text_line_height.to_absolute(Pixels(text_size)),
),
},
horizontal_alignment: alignment::Horizontal::Left,
vertical_alignment: alignment::Vertical::Center,