From 0a81454e7d284a3abd63d5cd9647ed0caa1a9530 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Tue, 27 Aug 2019 13:09:13 -0700 Subject: [PATCH] Fix BoxView --- src/views/box_view.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/box_view.rs b/src/views/box_view.rs index 942e1f6..c478e5a 100644 --- a/src/views/box_view.rs +++ b/src/views/box_view.rs @@ -225,7 +225,7 @@ impl ViewWrapper for BoxView { // This is the size the child would like to have. // Given the constraints of our box. - let child_size = self.size.zip_map(req, |c, s| c.result((s, s))); + let child_size = self.view.required_size(req); // Some of this request will be granted, but maybe not all. let result = self