mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-09 10:50:40 +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 {
|
||||
self.children
|
||||
.iter()
|
||||
.map(|c| c.position.bottom_left() + (1, 1))
|
||||
.map(|c| c.position.bottom_right() + (1, 1))
|
||||
.fold(Vec2::zero(), Vec2::max)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user