mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-24 23:39:51 +03:00
[project @ 2003-09-08 22:47:11 by bursa]
Box width fixes. svn path=/import/netsurf/; revision=272
This commit is contained in:
parent
74b71f8295
commit
c05f00209f
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user