From 1cdfeae0c640de586aa5defd148f4f856771ca39 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 30 Jun 2008 15:53:28 +0000 Subject: Fix top margin of boxes with a non-visible overflow type. svn path=/trunk/netsurf/; revision=4482 --- render/layout.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/render/layout.c b/render/layout.c index 4dd49ae3d..58ac6217f 100644 --- a/render/layout.c +++ b/render/layout.c @@ -342,6 +342,9 @@ bool layout_block_context(struct box *block, struct content *content) * establishes a new block context. */ if (box->type != BOX_INLINE_CONTAINER && box->style && box->style->overflow != CSS_OVERFLOW_VISIBLE) { + cy += max_pos_margin - max_neg_margin; + box->y += max_pos_margin - max_neg_margin; + layout_block_context(box, content); if (box->type == BOX_BLOCK || box->object) -- cgit v1.2.3