mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 04:56:50 +03:00
Fix bug #3433954: make containing_block available to layout_table so it can resolve percentage height specified on an absolutely-positioned table.
svn path=/trunk/netsurf/; revision=13130
This commit is contained in:
parent
da2b1ce44d
commit
4ba282c9c9
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user