summaryrefslogtreecommitdiff
path: root/render/html.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/html.c')
-rw-r--r--render/html.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/render/html.c b/render/html.c
index 568613fc8..dc6646821 100644
--- a/render/html.c
+++ b/render/html.c
@@ -418,10 +418,7 @@ void html_object_callback(content_msg msg, struct content *object,
/* invalidate parent min, max widths */
if (box->parent && box->parent->max_width != UNKNOWN_MAX_WIDTH) {
struct box *b = box->parent;
- if (b->min_width < object->width)
- b->min_width = object->width;
- if (b->max_width < object->width)
- b->max_width = object->width;
+ b->max_width = UNKNOWN_MAX_WIDTH;
for (b = b->parent; b != 0 &&
(b->type == BOX_TABLE_ROW_GROUP ||
b->type == BOX_TABLE_ROW ||