diff options
author | 2023-05-10 00:37:08 +0200 | |
---|---|---|
committer | 2023-05-10 00:37:08 +0200 | |
commit | 1400b5187d6fa30f5fa4f83684939f6dc87cb55f (patch) | |
tree | f43657b9764c9420d1f6a8c11ed5c09a69f151c0 /widget/src/pick_list.rs | |
parent | f75b8bd9ec4677b4469910b91ca2aa9ec5636e7e (diff) | |
download | iced-1400b5187d6fa30f5fa4f83684939f6dc87cb55f.tar.gz iced-1400b5187d6fa30f5fa4f83684939f6dc87cb55f.tar.bz2 iced-1400b5187d6fa30f5fa4f83684939f6dc87cb55f.zip |
Fix bounds of `PickList` text label
Diffstat (limited to 'widget/src/pick_list.rs')
-rw-r--r-- | widget/src/pick_list.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/widget/src/pick_list.rs b/widget/src/pick_list.rs index 50b47417..8c445dda 100644 --- a/widget/src/pick_list.rs +++ b/widget/src/pick_list.rs @@ -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, |