Fix BoxView

This commit is contained in:
Alexandre Bury 2019-08-27 13:09:13 -07:00
parent e47dd87e0c
commit 0a81454e7d

View File

@ -225,7 +225,7 @@ impl<T: View> ViewWrapper for BoxView<T> {
// This is the size the child would like to have. // This is the size the child would like to have.
// Given the constraints of our box. // 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. // Some of this request will be granted, but maybe not all.
let result = self let result = self