diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-10-26 14:51:48 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-10-26 14:56:10 +0200 |
| commit | fb0cd3df6e1e1077c6f19c319726c9aa9678325b (patch) | |
| tree | bde325cdcb0efa59324781bf2af8c4303e5a25de /src/layout/shape.rs | |
| parent | 1ca4ff69e235ca6dde9ef498a8377d0586f2519c (diff) | |
Fr in stack and par
Diffstat (limited to 'src/layout/shape.rs')
| -rw-r--r-- | src/layout/shape.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/layout/shape.rs b/src/layout/shape.rs index 13d5418f..2e66a0dd 100644 --- a/src/layout/shape.rs +++ b/src/layout/shape.rs @@ -55,8 +55,7 @@ impl InlineLevel for ShapeNode { // The "pod" is the region into which the child will be layouted. let mut pod = { - let size = - Size::new(width.unwrap_or(space), height.unwrap_or(Length::inf())); + let size = Size::new(width.unwrap_or(space), height.unwrap_or(base.h)); let base = Size::new( if width.is_some() { size.w } else { base.w }, |
