mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-09 04:22:12 +03:00
Fix placement of first inline on line below a float, when float has been shifted up by >= its own height with a negative margin.
This commit is contained in:
parent
aa438d34d2
commit
2dcfcd6724
@ -2782,7 +2782,10 @@ bool layout_line(struct box *first, int *width, int *y,
|
||||
if (right && used_height <
|
||||
right->y + right->height - cy + 1)
|
||||
used_height = right->y + right->height - cy + 1;
|
||||
assert(0 < used_height);
|
||||
|
||||
if (used_height < 0)
|
||||
used_height = 0;
|
||||
|
||||
b = split_box;
|
||||
#ifdef LAYOUT_DEBUG
|
||||
LOG(("moving below float"));
|
||||
|
Loading…
Reference in New Issue
Block a user