diff options
Diffstat (limited to 'render/layout.c')
-rw-r--r-- | render/layout.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/render/layout.c b/render/layout.c index 52f5d1ac2..9445b4327 100644 --- a/render/layout.c +++ b/render/layout.c @@ -621,6 +621,9 @@ bool layout_block_context(struct box *block, int viewport_height, margin_box = box; } + /* Account for bottom margin of last contained block */ + cy += max_pos_margin - max_neg_margin; + /* Increase height to contain any floats inside (CSS 2.1 10.6.7). */ for (box = block->float_children; box; box = box->next_float) { y = box->y + box->height + box->padding[BOTTOM] + |