mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-27 08:50:02 +03:00
Apply margin before clear.
svn path=/trunk/netsurf/; revision=11786
This commit is contained in:
parent
b68dc734e1
commit
9125bd1fa4
@ -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] -
|
||||||
|
Loading…
Reference in New Issue
Block a user