[project @ 2003-08-29 23:15:54 by bursa]

Fix row height problem.

svn path=/import/netsurf/; revision=261
This commit is contained in:
James Bursa 2003-08-29 23:15:54 +00:00
parent 9c4d5cc75f
commit 9a6d854181

View File

@ -712,10 +712,17 @@ void layout_table(struct box * table, unsigned long width, struct box * cont,
row_span[i]--; row_span[i]--;
else else
row_span_cell[i] = 0; row_span_cell[i] = 0;
/* row height is greatest excess of a cell which ends in this row */ if (row->next || row_group->next) {
for (i = 0; i != columns; i++) /* row height is greatest excess of a cell which ends in this row */
if (row_span[i] == 0 && row_height < excess_y[i]) for (i = 0; i != columns; i++)
row_height = excess_y[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++) { for (i = 0; i != columns; i++) {
if (row_height < excess_y[i]) if (row_height < excess_y[i])
excess_y[i] -= row_height; excess_y[i] -= row_height;