diff options
author | 2019-11-18 21:55:20 +0100 | |
---|---|---|
committer | 2019-11-18 21:55:20 +0100 | |
commit | 54ffefcc0b8f4558a93ca51f044594db009bacc8 (patch) | |
tree | d915860ee02bb0041ef5aad4660466c5420ca62e /native/src/widget/text_input.rs | |
parent | 2cbd5d60c46d956fcab685b448a40c1aa5f5b69f (diff) | |
parent | 6cdf69e76b8052fb726d5c2bf6c9746182e04d05 (diff) | |
download | iced-54ffefcc0b8f4558a93ca51f044594db009bacc8.tar.gz iced-54ffefcc0b8f4558a93ca51f044594db009bacc8.tar.bz2 iced-54ffefcc0b8f4558a93ca51f044594db009bacc8.zip |
Merge pull request #60 from hecrj/fix/required-width-height
Make `width` and `height` in `Widget` required methods
Diffstat (limited to 'native/src/widget/text_input.rs')
-rw-r--r-- | native/src/widget/text_input.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs index 35e10000..d54cf82c 100644 --- a/native/src/widget/text_input.rs +++ b/native/src/widget/text_input.rs @@ -15,6 +15,10 @@ where self.width } + fn height(&self) -> Length { + Length::Shrink + } + fn layout( &self, renderer: &Renderer, |