From 3a93e23b600498f4e0144c62008f8b1a85e2354a Mon Sep 17 00:00:00 2001 From: James Bursa Date: Sun, 22 Feb 2004 22:22:50 +0000 Subject: [project @ 2004-02-22 22:22:50 by bursa] Take margins, broder, padding into account in calculate_widths(). svn path=/import/netsurf/; revision=563 --- render/box.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'render/box.h') diff --git a/render/box.h b/render/box.h index c70dcb864..7e74da638 100644 --- a/render/box.h +++ b/render/box.h @@ -151,7 +151,8 @@ struct box { int padding[4]; /**< Padding: TOP, RIGHT, BOTTOM, LEFT. */ int border[4]; /**< Border width: TOP, RIGHT, BOTTOM, LEFT. */ - int min_width; /**< Width for content taking all line breaks. */ + /**< Width of box taking all line breaks (including margins etc.). */ + int min_width; int max_width; /**< Width that would be taken with no line breaks. */ char *text; /**< Text, or 0 if none. Unterminated. */ -- cgit v1.2.3