From e406481623ce9c2ef4a66fea5ed8481ac31f0aa8 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 12 Mar 2011 12:27:17 +0000 Subject: Update left/right margins comment. svn path=/trunk/netsurf/; revision=11967 --- render/layout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'render') diff --git a/render/layout.c b/render/layout.c index ca22ca36f..a740e1a90 100644 --- a/render/layout.c +++ b/render/layout.c @@ -352,8 +352,8 @@ bool layout_block_context(struct box *block, int viewport_height, else if (max_neg_margin < -box->margin[TOP]) max_neg_margin = -box->margin[TOP]; - /* no /required/ margins if box doesn't establish a new block - * formatting context */ + /* Blocks establishing a block formatting context get minimum + * left and right margins to avoid any floats. */ lm = rm = 0; if (box->type == BOX_BLOCK || box->object) { -- cgit v1.2.3