Apply margin before clear.

svn path=/trunk/netsurf/; revision=11786
This commit is contained in:
Michael Drake 2011-02-24 15:45:10 +00:00
parent b68dc734e1
commit 9125bd1fa4

View File

@ -365,8 +365,8 @@ bool layout_block_context(struct box *block, int viewport_height,
* floats. */
int x0, x1, top;
struct box *left, *right;
top = cy > y ? cy : y;
top += max_pos_margin - max_neg_margin;
top = cy + max_pos_margin - max_neg_margin;
top = (top > y) ? top : y;
x0 = cx;
x1 = cx + box->parent->width -
box->parent->padding[LEFT] -