From c05f00209fcc376203125fdace01372632592c42 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Mon, 8 Sep 2003 22:47:11 +0000 Subject: [project @ 2003-09-08 22:47:11 by bursa] Box width fixes. svn path=/import/netsurf/; revision=272 --- render/html.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'render/html.c') diff --git a/render/html.c b/render/html.c index c2b3e2b11..443d4cd7d 100644 --- a/render/html.c +++ b/render/html.c @@ -419,8 +419,10 @@ void html_object_callback(content_msg msg, struct content *object, b->min_width = object->width; if (b->max_width < object->width) b->max_width = object->width; - for (b = b->parent; - b != 0 && b->max_width != UNKNOWN_MAX_WIDTH; + for (b = b->parent; b != 0 && + (b->type == BOX_TABLE_ROW_GROUP || + b->type == BOX_TABLE_ROW || + b->max_width != UNKNOWN_MAX_WIDTH); b = b->parent) b->max_width = UNKNOWN_MAX_WIDTH; } -- cgit v1.2.3