mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +00:00
Fix BoxView
This commit is contained in:
parent
e47dd87e0c
commit
0a81454e7d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user