[project @ 2006-03-26 19:59:15 by bursa]
Fix layout bug related to floats near end of line (fixes 1453561). Pass 1 and pass 2 in layout_line() were handling space_after differently. svn path=/import/netsurf/; revision=2182
This commit is contained in:
parent
8ebdc30958
commit
c2bddcee46
|
@ -1063,14 +1063,14 @@ bool layout_line(struct box *first, int width, int *y,
|
|||
b->type == BOX_BR || b->type == BOX_TEXT ||
|
||||
b->type == BOX_INLINE_END);
|
||||
|
||||
x += space_after;
|
||||
|
||||
if (b->type == BOX_BR)
|
||||
break;
|
||||
|
||||
if (b->type == BOX_FLOAT_LEFT || b->type == BOX_FLOAT_RIGHT)
|
||||
continue;
|
||||
|
||||
x += space_after;
|
||||
|
||||
if (b->type == BOX_INLINE_BLOCK) {
|
||||
if (b->width == UNKNOWN_WIDTH)
|
||||
if (!layout_float(b, width, content))
|
||||
|
|
Loading…
Reference in New Issue