summaryrefslogtreecommitdiffstats
path: root/native/src/widget/text_input.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-12-30 20:54:04 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-12-30 21:00:27 +0100
commit2ff0e48142c302cb93130164d083589bb2ac4979 (patch)
tree0abdf5892d999c0e98b42849c74cab8a619fbb5e /native/src/widget/text_input.rs
parent74d01a69577065ce4152fc80b297e8816ab3deff (diff)
downloadiced-2ff0e48142c302cb93130164d083589bb2ac4979.tar.gz
iced-2ff0e48142c302cb93130164d083589bb2ac4979.tar.bz2
iced-2ff0e48142c302cb93130164d083589bb2ac4979.zip
Make `Row`, `Column`, and `Checkbox` shrink by default
Diffstat (limited to 'native/src/widget/text_input.rs')
-rw-r--r--native/src/widget/text_input.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs
index 1d1c32a2..d3c45fba 100644
--- a/native/src/widget/text_input.rs
+++ b/native/src/widget/text_input.rs
@@ -64,11 +64,11 @@ impl<'a, Message> TextInput<'a, Message> {
placeholder: &str,
value: &str,
on_change: F,
- ) -> Self
+ ) -> TextInput<'a, Message>
where
F: 'static + Fn(String) -> Message,
{
- Self {
+ TextInput {
state,
placeholder: String::from(placeholder),
value: Value::new(value),