diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-09-25 23:35:27 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-09-25 23:35:27 +0200 |
| commit | 5594868f8b7a3ca5155804653fc2f2d2fb84a48e (patch) | |
| tree | 5ee923b831417b4ff8ad3f8e1353a90624ea66f8 /src/layout/stack.rs | |
| parent | cdb9867e0d3c91c5f1e6a93bb9e34e1824d184f7 (diff) | |
Prevent paragraph from overflowing due to trailing linebreak
Diffstat (limited to 'src/layout/stack.rs')
| -rw-r--r-- | src/layout/stack.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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); |
