summaryrefslogtreecommitdiff
path: root/render/layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/layout.c')
-rw-r--r--render/layout.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/render/layout.c b/render/layout.c
index 6383d8057..05b668aad 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -138,6 +138,8 @@ bool layout_document(struct content *content, int width, int height)
if (width < 0)
width = 0;
doc->width = width;
+ if (doc->height == AUTO)
+ doc->height = height;
ret = layout_block_context(doc, content);