From 7c4738735b6cd5eafb544de01dbf5dd5091dc188 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 14 Oct 2021 17:05:47 +0700 Subject: Implement `Widget::draw` for `Container` --- native/src/widget/container.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'native/src/widget') diff --git a/native/src/widget/container.rs b/native/src/widget/container.rs index f43de2a5..af40f2ab 100644 --- a/native/src/widget/container.rs +++ b/native/src/widget/container.rs @@ -180,7 +180,13 @@ where cursor_position: Point, viewport: &Rectangle, ) { - // TODO + self.content.draw( + renderer, + defaults, + layout.children().next().unwrap(), + cursor_position, + viewport, + ); } fn hash_layout(&self, state: &mut Hasher) { -- cgit