From 6cdf69e76b8052fb726d5c2bf6c9746182e04d05 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 16 Nov 2019 22:08:49 +0100 Subject: Make `width` and `height` required methods --- native/src/widget/container.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'native/src/widget/container.rs') diff --git a/native/src/widget/container.rs b/native/src/widget/container.rs index fd7a5ca5..5aed3121 100644 --- a/native/src/widget/container.rs +++ b/native/src/widget/container.rs @@ -15,6 +15,10 @@ where self.width } + fn height(&self) -> Length { + self.height + } + fn layout( &self, renderer: &Renderer, -- cgit