mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
[project @ 2003-08-29 23:15:54 by bursa]
Fix row height problem. svn path=/import/netsurf/; revision=261
This commit is contained in:
parent
9c4d5cc75f
commit
9a6d854181
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user