diff options
author | 2021-06-01 19:21:43 +0700 | |
---|---|---|
committer | 2021-06-01 19:21:43 +0700 | |
commit | b94cd7a2a83d81769d31f6379539089ce68cbdcd (patch) | |
tree | 63aac7f69dff9bb9f195e04d16c6a4f5b57b8683 /graphics/src/widget | |
parent | 2e17d7860b6f857315f14341813645ca980a15df (diff) | |
download | iced-b94cd7a2a83d81769d31f6379539089ce68cbdcd.tar.gz iced-b94cd7a2a83d81769d31f6379539089ce68cbdcd.tar.bz2 iced-b94cd7a2a83d81769d31f6379539089ce68cbdcd.zip |
Use `Padding::horizontal` and `Padding::vertical` helpers
Diffstat (limited to 'graphics/src/widget')
-rw-r--r-- | graphics/src/widget/pick_list.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/graphics/src/widget/pick_list.rs b/graphics/src/widget/pick_list.rs index c6fbcf76..32dfbdf9 100644 --- a/graphics/src/widget/pick_list.rs +++ b/graphics/src/widget/pick_list.rs @@ -57,8 +57,7 @@ where font: B::ICON_FONT, size: bounds.height * style.icon_size, bounds: Rectangle { - x: bounds.x + bounds.width - - f32::from(padding.left + padding.right), + x: bounds.x + bounds.width - f32::from(padding.horizontal()), y: bounds.center_y(), ..bounds }, |