mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-25 19:04:21 +03:00
Fix top margin of boxes with a non-visible overflow type.
svn path=/trunk/netsurf/; revision=4482
This commit is contained in:
parent
40b4735f91
commit
1cdfeae0c6
@ -342,6 +342,9 @@ bool layout_block_context(struct box *block, struct content *content)
|
||||
* establishes a new block context. */
|
||||
if (box->type != BOX_INLINE_CONTAINER && box->style &&
|
||||
box->style->overflow != CSS_OVERFLOW_VISIBLE) {
|
||||
cy += max_pos_margin - max_neg_margin;
|
||||
box->y += max_pos_margin - max_neg_margin;
|
||||
|
||||
layout_block_context(box, content);
|
||||
|
||||
if (box->type == BOX_BLOCK || box->object)
|
||||
|
Loading…
x
Reference in New Issue
Block a user