From d4d14b68f47e9527554a728ebbba9b840832626a Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 11 Nov 2019 05:37:51 +0100 Subject: Remove `padding` from `Container` for now --- native/src/layout/node.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'native/src/layout') diff --git a/native/src/layout/node.rs b/native/src/layout/node.rs index 9d8ad57d..64ebf2d0 100644 --- a/native/src/layout/node.rs +++ b/native/src/layout/node.rs @@ -46,7 +46,9 @@ impl Node { Align::Center => { self.bounds.x += (space.width - self.bounds.width) / 2.0; } - Align::End => {} + Align::End => { + self.bounds.x += space.width - self.bounds.width; + } } match vertical_alignment { @@ -54,7 +56,9 @@ impl Node { Align::Center => { self.bounds.y += (space.height - self.bounds.height) / 2.0; } - Align::End => {} + Align::End => { + self.bounds.y += space.height - self.bounds.height; + } } } } -- cgit