diff options
author | 2020-01-09 01:51:53 +0100 | |
---|---|---|
committer | 2020-01-09 01:51:53 +0100 | |
commit | 6699329d3f91c5b9d8e8e55ad88de24bd3894955 (patch) | |
tree | c41ab304ffaf2dc2311c7d33916cd0515114ad31 /native/src/widget/text_input.rs | |
parent | cc529a1803972604b122c19c0104e71532fff993 (diff) | |
parent | a4e833e860c41796d491ab43e84239fcca1f303d (diff) | |
download | iced-6699329d3f91c5b9d8e8e55ad88de24bd3894955.tar.gz iced-6699329d3f91c5b9d8e8e55ad88de24bd3894955.tar.bz2 iced-6699329d3f91c5b9d8e8e55ad88de24bd3894955.zip |
Merge pull request #139 from hecrj/feature/shrink-by-default
Make `Row`, `Column`, `Text`, and `Checkbox` shrink by default
Diffstat (limited to 'native/src/widget/text_input.rs')
-rw-r--r-- | native/src/widget/text_input.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs index c994b7ba..f744da27 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), |