summaryrefslogtreecommitdiff
path: root/src/layout/shape.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/layout/shape.rs')
-rw-r--r--src/layout/shape.rs3
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 },