mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 09:25:01 +00:00
Fix FixedLayout::required_size
This commit is contained in:
parent
9e5491bda2
commit
f5687f5eab
@ -284,7 +284,7 @@ impl View for FixedLayout {
|
|||||||
fn required_size(&mut self, _constraint: Vec2) -> Vec2 {
|
fn required_size(&mut self, _constraint: Vec2) -> Vec2 {
|
||||||
self.children
|
self.children
|
||||||
.iter()
|
.iter()
|
||||||
.map(|c| c.position.bottom_left() + (1, 1))
|
.map(|c| c.position.bottom_right() + (1, 1))
|
||||||
.fold(Vec2::zero(), Vec2::max)
|
.fold(Vec2::zero(), Vec2::max)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user