diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2008-03-07 18:36:04 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2008-03-07 18:36:04 +0000 |
commit | 16489d1b12df33164743c7de6c8101210cb74fa9 (patch) | |
tree | 562ee8c3e38eb3f9cf889354f8fb4c58d95d9afd /render/layout.c | |
parent | 8f999376d56043ffb4c5fa8310e4eb65a5567e23 (diff) | |
download | netsurf-16489d1b12df33164743c7de6c8101210cb74fa9.tar.gz netsurf-16489d1b12df33164743c7de6c8101210cb74fa9.tar.bz2 |
No space between rows of floats.
svn path=/trunk/netsurf/; revision=3895
Diffstat (limited to 'render/layout.c')
-rw-r--r-- | render/layout.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/render/layout.c b/render/layout.c index f5dca7c89..7be5e7ed6 100644 --- a/render/layout.c +++ b/render/layout.c @@ -1381,7 +1381,7 @@ bool layout_line(struct box *first, int *width, int *y, } else { /* doesn't fit: place below */ place_float_below(b, *width, - cx, cy + height + 1, cont); + cx, cy + height, cont); } if (cont->float_children == b) { LOG(("float %p already placed", b)); @@ -1871,11 +1871,11 @@ void place_float_below(struct box *c, int width, int cx, int y, yy = (left->y + left->height < right->y + right->height ? left->y + left->height : - right->y + right->height) + 1; + right->y + right->height); } else if (left == 0 && right != 0) { - yy = right->y + right->height + 1; + yy = right->y + right->height; } else if (left != 0 && right == 0) { - yy = left->y + left->height + 1; + yy = left->y + left->height; } } while (!((left == 0 && right == 0) || (c->width < x1 - x0))); |