[project @ 2005-08-06 22:29:30 by bursa]

Use given width as initial min/max width of fixed-width table columns. This improves the layout of certain tables with colspans.

svn path=/import/netsurf/; revision=1841
This commit is contained in:
James Bursa 2005-08-06 22:29:30 +00:00
parent 3b4baa8008
commit 362a6000b4
1 changed files with 7 additions and 2 deletions

View File

@ -2159,8 +2159,13 @@ void layout_minmax_table(struct box *table)
if (table->max_width != UNKNOWN_MAX_WIDTH)
return;
for (i = 0; i != table->columns; i++)
col[i].min = col[i].max = 0;
/* start with 0 except for fixed-width columns */
for (i = 0; i != table->columns; i++) {
if (col[i].type == COLUMN_WIDTH_FIXED)
col[i].min = col[i].max = col[i].width;
else
col[i].min = col[i].max = 0;
}
/* border-spacing is used in the separated borders model */
if (table->style->border_collapse == CSS_BORDER_COLLAPSE_SEPARATE)