summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-04-18 19:53:27 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-07-08 11:05:15 +0200
commite29feef8ba4f95f286039fcc1ca2e53bfe5019c5 (patch)
treeac3e4e8bce0fcca65cd536f4a821fb5517b84947 /native
parentada8d7c77f9e1d4a1de762b514c9610f7e09b17f (diff)
downloadiced-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.rs4
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),
);