summaryrefslogtreecommitdiffstats
path: root/native/src/widget/text_input.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2019-11-18 21:55:20 +0100
committerLibravatar GitHub <noreply@github.com>2019-11-18 21:55:20 +0100
commit54ffefcc0b8f4558a93ca51f044594db009bacc8 (patch)
treed915860ee02bb0041ef5aad4660466c5420ca62e /native/src/widget/text_input.rs
parent2cbd5d60c46d956fcab685b448a40c1aa5f5b69f (diff)
parent6cdf69e76b8052fb726d5c2bf6c9746182e04d05 (diff)
downloadiced-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.rs4
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,