diff options
Diffstat (limited to 'render/layout.c')
-rw-r--r-- | render/layout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/render/layout.c b/render/layout.c index 93818723f..37af1c2f7 100644 --- a/render/layout.c +++ b/render/layout.c @@ -2277,9 +2277,10 @@ bool layout_line(struct box *first, int *width, int *y, int fcy = (cy > cont->clear_level) ? cy : cont->clear_level; fy = (fy > fcy) ? fy : fcy; + fy = (fy == cy) ? fy + height : fy; place_float_below(b, *width, - cx, fy + height, cont); + cx, fy, cont); fy = b->y; if (d->style && css_computed_clear(d->style) != CSS_CLEAR_NONE) { |