From 19c6a63174fcb1c6d20e819e5071844da8e05981 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 21 Mar 2008 01:04:09 +0000 Subject: CSS min/max-height overrides height. svn path=/trunk/netsurf/; revision=4008 --- render/layout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3