Fix top margin of boxes with a non-visible overflow type.

svn path=/trunk/netsurf/; revision=4482
This commit is contained in:
Michael Drake 2008-06-30 15:53:28 +00:00
parent 40b4735f91
commit 1cdfeae0c6

View File

@ -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)