diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2008-06-30 15:53:28 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2008-06-30 15:53:28 +0000 |
commit | 1cdfeae0c640de586aa5defd148f4f856771ca39 (patch) | |
tree | ffc800f08aafc69f51b98c6d9ca8d4c939c15263 /render/layout.c | |
parent | 40b4735f915a264884bc7382cd3fab4af12b07fd (diff) | |
download | netsurf-1cdfeae0c640de586aa5defd148f4f856771ca39.tar.gz netsurf-1cdfeae0c640de586aa5defd148f4f856771ca39.tar.bz2 |
Fix top margin of boxes with a non-visible overflow type.
svn path=/trunk/netsurf/; revision=4482
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 4dd49ae3d..58ac6217f 100644 --- a/render/layout.c +++ b/render/layout.c @@ -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) |