summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--render/layout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render/layout.c b/render/layout.c
index 83ea9ca64..8a6b856c8 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -463,10 +463,10 @@ bool layout_block_context(struct box *block, struct content *content)
if (block->height == AUTO) {
block->height = cy - block->padding[TOP];
- layout_apply_minmax_height(block);
if (block->type == BOX_BLOCK)
layout_block_add_scrollbar(block, BOTTOM);
}
+ layout_apply_minmax_height(block);
return true;
}