summaryrefslogtreecommitdiffstats
path: root/native/src/widget/text.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-16 22:08:49 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-16 22:08:49 +0100
commit6cdf69e76b8052fb726d5c2bf6c9746182e04d05 (patch)
treed915860ee02bb0041ef5aad4660466c5420ca62e /native/src/widget/text.rs
parent2cbd5d60c46d956fcab685b448a40c1aa5f5b69f (diff)
downloadiced-6cdf69e76b8052fb726d5c2bf6c9746182e04d05.tar.gz
iced-6cdf69e76b8052fb726d5c2bf6c9746182e04d05.tar.bz2
iced-6cdf69e76b8052fb726d5c2bf6c9746182e04d05.zip
Make `width` and `height` required methods
Diffstat (limited to 'native/src/widget/text.rs')
-rw-r--r--native/src/widget/text.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/native/src/widget/text.rs b/native/src/widget/text.rs
index 10d892a3..3097b8f3 100644
--- a/native/src/widget/text.rs
+++ b/native/src/widget/text.rs
@@ -13,6 +13,10 @@ where
self.width
}
+ fn height(&self) -> Length {
+ self.height
+ }
+
fn layout(
&self,
renderer: &Renderer,