From f5687f5eab1878859735d79cb94af21405ffdd97 Mon Sep 17 00:00:00 2001 From: Alexandre Bury Date: Tue, 30 Jun 2020 13:36:58 -0700 Subject: [PATCH] Fix FixedLayout::required_size --- cursive-core/src/views/fixed_layout.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cursive-core/src/views/fixed_layout.rs b/cursive-core/src/views/fixed_layout.rs index 05f5183..c99b6fd 100644 --- a/cursive-core/src/views/fixed_layout.rs +++ b/cursive-core/src/views/fixed_layout.rs @@ -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) }