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. */ * floats. */
int x0, x1, top; int x0, x1, top;
struct box *left, *right; struct box *left, *right;
top = cy > y ? cy : y; top = cy + max_pos_margin - max_neg_margin;
top += max_pos_margin - max_neg_margin; top = (top > y) ? top : y;
x0 = cx; x0 = cx;
x1 = cx + box->parent->width - x1 = cx + box->parent->width -
box->parent->padding[LEFT] - box->parent->padding[LEFT] -