mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-26 22:09:43 +03:00
[project @ 2003-08-29 12:56:06 by bursa]
Fix table layout bug (news.google.co.uk). svn path=/import/netsurf/; revision=258
This commit is contained in:
parent
094b65cd0d
commit
be34d32e46
@ -1208,14 +1208,6 @@ void box_normalise_table_row(struct box *row,
|
|||||||
if ((*row_span)[i] != 0)
|
if ((*row_span)[i] != 0)
|
||||||
(*row_span)[i]--;
|
(*row_span)[i]--;
|
||||||
|
|
||||||
/* if all columns have a rowspan, shrink it to the lowest equivalent */
|
|
||||||
min = (*row_span)[0];
|
|
||||||
for (i = 1; i != *table_columns; i++)
|
|
||||||
if ((*row_span)[i] < min)
|
|
||||||
min = (*row_span)[i];
|
|
||||||
for (i = 0; i != *table_columns; i++)
|
|
||||||
(*row_span)[i] -= min;
|
|
||||||
|
|
||||||
if (row->children == 0) {
|
if (row->children == 0) {
|
||||||
LOG(("row->children == 0, removing"));
|
LOG(("row->children == 0, removing"));
|
||||||
if (row->prev == 0)
|
if (row->prev == 0)
|
||||||
|
@ -712,13 +712,6 @@ 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;
|
||||||
/* if all columns have a row span, shrink it to the lowest equivalent */
|
|
||||||
min = row_span[0];
|
|
||||||
for (i = 1; i != columns; i++)
|
|
||||||
if (row_span[i] < min)
|
|
||||||
min = row_span[i];
|
|
||||||
for (i = 0; i != columns; i++)
|
|
||||||
row_span[i] -= min;
|
|
||||||
/* row height is greatest excess of a cell which ends in this row */
|
/* row height is greatest excess of a cell which ends in this row */
|
||||||
for (i = 0; i != columns; i++)
|
for (i = 0; i != columns; i++)
|
||||||
if (row_span[i] == 0 && row_height < excess_y[i])
|
if (row_span[i] == 0 && row_height < excess_y[i])
|
||||||
|
Loading…
Reference in New Issue
Block a user