diff options
author | 2020-04-18 19:53:27 +0200 | |
---|---|---|
committer | 2020-07-08 11:05:15 +0200 | |
commit | e29feef8ba4f95f286039fcc1ca2e53bfe5019c5 (patch) | |
tree | ac3e4e8bce0fcca65cd536f4a821fb5517b84947 /native | |
parent | ada8d7c77f9e1d4a1de762b514c9610f7e09b17f (diff) | |
download | iced-e29feef8ba4f95f286039fcc1ca2e53bfe5019c5.tar.gz iced-e29feef8ba4f95f286039fcc1ca2e53bfe5019c5.tar.bz2 iced-e29feef8ba4f95f286039fcc1ca2e53bfe5019c5.zip |
Render arrow icon in `ComboBox`
Diffstat (limited to 'native')
-rw-r--r-- | native/src/widget/combo_box.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/native/src/widget/combo_box.rs b/native/src/widget/combo_box.rs index 0b25b836..1b04a9a8 100644 --- a/native/src/widget/combo_box.rs +++ b/native/src/widget/combo_box.rs @@ -126,7 +126,9 @@ where let size = { let intrinsic = Size::new( - max_width as f32 + f32::from(text_size), + max_width as f32 + + f32::from(text_size) + + f32::from(self.padding), f32::from(text_size), ); |