Fix FixedLayout::required_size

This commit is contained in:
Alexandre Bury 2020-06-30 13:36:58 -07:00
parent 9e5491bda2
commit f5687f5eab

View File

@ -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)
}