Author: tlsa
Date: Mon Jun 30 10:53:28 2008
New Revision: 4482
URL:
http://source.netsurf-browser.org?rev=4482&view=rev
Log:
Fix top margin of boxes with a non-visible overflow type.
Modified:
trunk/netsurf/render/layout.c
Modified: trunk/netsurf/render/layout.c
URL:
http://source.netsurf-browser.org/trunk/netsurf/render/layout.c?rev=4482&...
==============================================================================
--- trunk/netsurf/render/layout.c (original)
+++ trunk/netsurf/render/layout.c Mon Jun 30 10:53:28 2008
@@ -342,6 +342,9 @@
* 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)