From 9a6d854181a0b951322875096de57df6b4cc4be0 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Fri, 29 Aug 2003 23:15:54 +0000 Subject: [project @ 2003-08-29 23:15:54 by bursa] Fix row height problem. svn path=/import/netsurf/; revision=261 --- render/layout.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'render') diff --git a/render/layout.c b/render/layout.c index 6b4368616..7a586c0aa 100644 --- a/render/layout.c +++ b/render/layout.c @@ -712,10 +712,17 @@ void layout_table(struct box * table, unsigned long width, struct box * cont, row_span[i]--; else row_span_cell[i] = 0; - /* row height is greatest excess of a cell which ends in this row */ - for (i = 0; i != columns; i++) - if (row_span[i] == 0 && row_height < excess_y[i]) - row_height = excess_y[i]; + if (row->next || row_group->next) { + /* row height is greatest excess of a cell which ends in this row */ + for (i = 0; i != columns; i++) + if (row_span[i] == 0 && row_height < excess_y[i]) + row_height = excess_y[i]; + } else { + /* except in the last row */ + for (i = 0; i != columns; i++) + if (row_height < excess_y[i]) + row_height = excess_y[i]; + } for (i = 0; i != columns; i++) { if (row_height < excess_y[i]) excess_y[i] -= row_height; -- cgit v1.2.3