[project @ 2003-09-08 22:47:11 by bursa]

Box width fixes.

svn path=/import/netsurf/; revision=272
This commit is contained in:
James Bursa 2003-09-08 22:47:11 +00:00
parent 74b71f8295
commit c05f00209f
2 changed files with 6 additions and 2 deletions

View File

@ -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;
}

View File

@ -237,6 +237,8 @@ unsigned long layout_block_children(struct box * box, unsigned long width, struc
c->y = y;
layout_node(c, width, cont, cx, cy + y);
y = c->y + c->height;
if (box->width < c->width)
box->width = c->width;
}
return y;
}