mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 06:51:26 +03:00
Fix assert when replaced element has display:table;.
svn path=/trunk/netsurf/; revision=7950
This commit is contained in:
parent
507cfe9313
commit
f9b905be95
@ -376,8 +376,10 @@ bool layout_block_context(struct box *block, int viewport_height,
|
||||
}
|
||||
layout_block_find_dimensions(box->parent->width,
|
||||
viewport_height, lm, rm, box);
|
||||
layout_block_add_scrollbar(box, RIGHT);
|
||||
layout_block_add_scrollbar(box, BOTTOM);
|
||||
if (box->type == BOX_BLOCK) {
|
||||
layout_block_add_scrollbar(box, RIGHT);
|
||||
layout_block_add_scrollbar(box, BOTTOM);
|
||||
}
|
||||
} else if (box->type == BOX_TABLE) {
|
||||
if (box->style->width.width == CSS_WIDTH_AUTO) {
|
||||
/* max available width may be diminished due to
|
||||
|
Loading…
Reference in New Issue
Block a user