summaryrefslogtreecommitdiff
path: root/render/layout.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/layout.c')
-rw-r--r--render/layout.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/render/layout.c b/render/layout.c
index c4dbcb0b7..fd9c7f7cf 100644
--- a/render/layout.c
+++ b/render/layout.c
@@ -4677,9 +4677,13 @@ bool layout_absolute(struct box *box, struct box *containing_block,
if (!layout_block_context(box, -1, content))
return false;
} else if (box->type == BOX_TABLE) {
+ /* layout_table also expects the containing block to be
+ * stored in the float_container field */
+ box->float_container = containing_block;
/* \todo layout_table considers margins etc. again */
if (!layout_table(box, width, content))
return false;
+ box->float_container = NULL;
layout_solve_width(box, box->parent->width, box->width, 0, 0,
-1, -1);
}