From 5594868f8b7a3ca5155804653fc2f2d2fb84a48e Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 25 Sep 2021 23:35:27 +0200 Subject: Prevent paragraph from overflowing due to trailing linebreak --- src/layout/stack.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/layout/stack.rs') diff --git a/src/layout/stack.rs b/src/layout/stack.rs index 4afe9c64..4b148ad8 100644 --- a/src/layout/stack.rs +++ b/src/layout/stack.rs @@ -173,8 +173,7 @@ impl<'a> StackLayouter<'a> { let expand = self.expand; let used = self.used.to_size(self.block); - // Determine the stack's size dependening on whether the region is - // fixed. + // Determine the stack's size dependening on whether the region expands. let size = Size::new( if expand.x { self.constraints.exact.x = Some(self.full.w); -- cgit v1.2.3